Java slf4j Logger logAndIdError(Logger log, String errorMessage)

Here you can find the source of logAndIdError(Logger log, String errorMessage)

Description

log And Id Error

License

Apache License

Declaration

public static String logAndIdError(Logger log, String errorMessage) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import org.slf4j.Logger;

public class Main {
    public static String logAndIdError(Logger log, String errorMessage) {
        //errorMessage = errorMessage + " - logId:"+new Date().getTime();
        log.error(errorMessage);/*w  w  w .  java 2 s .c  o m*/
        return errorMessage;
    }
}

Related

  1. isSlf4jPresent()
  2. log(Logger logger, int logLevel, String value)
  3. log(Logger logger, Throwable t)
  4. log(String format, Object... arguments)
  5. log(String message)
  6. logArgs(final Logger logger, final Object[] args)
  7. logBind(Logger log, int index, Object value)
  8. logBytes(byte[] data, int length, String prefix, Logger logger)
  9. logDebug(Logger logger, String mensagem, Object... params)