Class Log

java.lang.Object
org.yamcs.logging.Log

public class Log extends Object
  • Constructor Details

    • Log

      public Log(Class<?> clazz)
    • Log

      public Log(Class<?> clazz, String yamcsInstance)
  • Method Details

    • getJulLogger

      public Logger getJulLogger()
    • setContext

      public void setContext(String context)
    • info

      public void info(String msg)
    • info

      public void info(String msg, Throwable t)
    • info

      public void info(String msg, Object... args)
    • isDebugEnabled

      public boolean isDebugEnabled()
    • debug

      public void debug(String msg)
    • debug

      public void debug(String msg, Throwable t)
    • debug

      public void debug(String msg, Object... args)
    • isTraceEnabled

      public boolean isTraceEnabled()
    • trace

      public void trace(String msg)
    • trace

      public void trace(String msg, Throwable t)
    • trace

      public void trace(String msg, Object... args)
    • warn

      public void warn(String msg)
    • warn

      public void warn(String msg, Throwable t)
    • warn

      public void warn(String msg, Object... args)
    • error

      public void error(String msg)
    • error

      public void error(String msg, Throwable t)
    • error

      public void error(String msg, Object... args)
    • log

      protected void log(Level level, String msg, Throwable t)
    • forceStandardStreams

      public static void forceStandardStreams(Level level)
      Force all log message to be printed on stdout instead of the configured logger. This may be of use for short tests and scripts.