Package org.yamcs.logging
Class Log
- java.lang.Object
-
- org.yamcs.logging.Log
-
public class Log extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddebug(String msg)voiddebug(String msg, Object... args)voiddebug(String msg, Throwable t)voiderror(String msg)voiderror(String msg, Object... args)voiderror(String msg, Throwable t)static voidforceStandardStreams(Level level)Force all log message to be printed on stdout instead of the configured logger.LoggergetJulLogger()voidinfo(String msg)voidinfo(String msg, Object... args)voidinfo(String msg, Throwable t)booleanisDebugEnabled()booleanisTraceEnabled()protected voidlog(Level level, String msg, Throwable t)voidsetContext(String context)voidtrace(String msg)voidtrace(String msg, Object... args)voidtrace(String msg, Throwable t)voidwarn(String msg)voidwarn(String msg, Object... args)voidwarn(String msg, Throwable t)
-
-
-
Method Detail
-
getJulLogger
public Logger getJulLogger()
-
setContext
public void setContext(String context)
-
info
public void info(String msg)
-
isDebugEnabled
public boolean isDebugEnabled()
-
debug
public void debug(String msg)
-
isTraceEnabled
public boolean isTraceEnabled()
-
trace
public void trace(String msg)
-
warn
public void warn(String msg)
-
error
public void error(String msg)
-
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.
-
-