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)
      Send a log message at INFO level.
    • info

      public void info(String msg, Throwable t)
      Send a log message at INFO level.
    • info

      public void info(String msg, Object... args)
      Send a log message at INFO level using SLF4J-style formatting. The last argument may be a Throwable.
    • isDebugEnabled

      public boolean isDebugEnabled()
    • debug

      public void debug(String msg)
      Send a log message at DEBUG level.
    • debug

      public void debug(String msg, Throwable t)
      Send a log message at DEBUG level.
    • debug

      public void debug(String msg, Object... args)
      Send a log message at DEBUG level using SLF4J-style formatting. The last argument may be a Throwable.
    • isTraceEnabled

      public boolean isTraceEnabled()
    • trace

      public void trace(String msg)
      Send a log message at TRACE level.
    • trace

      public void trace(String msg, Throwable t)
      Send a log message at TRACE level.
    • trace

      public void trace(String msg, Object... args)
      Send a log message at TRACE level using SLF4J-style formatting. The last argument may be a Throwable.
    • warn

      public void warn(String msg)
      Send a log message at WARN level.
    • warn

      public void warn(String msg, Throwable t)
      Send a log message at WARN level.
    • warn

      public void warn(String msg, Object... args)
      Send a log message at WARN level using SLF4J-style formatting. The last argument may be a Throwable.
    • error

      public void error(String msg)
      Send a log message at ERROR level.
    • error

      public void error(String msg, Throwable t)
      Send a log message at ERROR level.
    • error

      public void error(String msg, Object... args)
      Send a log message at ERROR level using SLF4J-style formatting. The last argument may be a Throwable.
    • 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.