Java slf4j Logger warn(String msg)

Here you can find the source of warn(String msg)

Description

warn

License

Open Source License

Declaration

public static void warn(String msg) 

Method Source Code


//package com.java2s;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class Main {
    /** Logger */
    private static final Logger logger = LoggerFactory.getLogger("LOGGER");

    public static void warn(String msg) {
        logger.warn(msg);/*from w  w w .jav  a  2 s  .  c om*/
    }

    public static void warn(String msg, Throwable e) {
        logger.warn(msg, e);
    }
}

Related

  1. traceLog(final Logger log, final String logMethodName, String logMsg)
  2. warn(Logger log, Object... args)
  3. warn(String format, Object... arguments)
  4. warn(String message)
  5. warn(String msg)
  6. warnOrDebug(Logger logger, String msg)
  7. wrapWithMDC(Runnable r)
  8. writeErrorLog(String cont)