Package com.lightbend.cinnamon.logging
Class StandardOutLogger
- java.lang.Object
-
- com.lightbend.cinnamon.logging.StandardOutLogger
-
-
Constructor Summary
Constructors Constructor Description StandardOutLogger(LogLevel logLevel, java.lang.String name, java.io.PrintStream out, java.io.PrintStream err)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isDebugEnabled()
`true` if the logger instance is enabled for the `DEBUG` level.boolean
isErrorEnabled()
`true` if the logger instance is enabled for the `ERROR` level.boolean
isInfoEnabled()
`true` if the logger instance is enabled for the `INFO` level.boolean
isTraceEnabled()
`true` if the logger instance is enabled for the `TRACE` level.boolean
isWarnEnabled()
`true` if the logger instance is enabled for the `WARN` level.void
output(LogLevel level, java.lang.String message)
Outputs a log message at the specified levelvoid
output(LogLevel level, java.lang.String message, java.lang.Throwable error)
Outputs a log message at the specified level
-
-
-
Constructor Detail
-
StandardOutLogger
public StandardOutLogger(LogLevel logLevel, java.lang.String name, java.io.PrintStream out, java.io.PrintStream err)
-
-
Method Detail
-
isTraceEnabled
public boolean isTraceEnabled()
Description copied from interface:Logger
`true` if the logger instance is enabled for the `TRACE` level.- Specified by:
isTraceEnabled
in interfaceLogger
- Returns:
- whether TRACE level is enabled
-
isDebugEnabled
public boolean isDebugEnabled()
Description copied from interface:Logger
`true` if the logger instance is enabled for the `DEBUG` level.- Specified by:
isDebugEnabled
in interfaceLogger
- Returns:
- whether DEBUG level is enabled
-
isInfoEnabled
public boolean isInfoEnabled()
Description copied from interface:Logger
`true` if the logger instance is enabled for the `INFO` level.- Specified by:
isInfoEnabled
in interfaceLogger
- Returns:
- whether INFO level is enabled
-
isWarnEnabled
public boolean isWarnEnabled()
Description copied from interface:Logger
`true` if the logger instance is enabled for the `WARN` level.- Specified by:
isWarnEnabled
in interfaceLogger
- Returns:
- whether WARN level is enabled
-
isErrorEnabled
public boolean isErrorEnabled()
Description copied from interface:Logger
`true` if the logger instance is enabled for the `ERROR` level.- Specified by:
isErrorEnabled
in interfaceLogger
- Returns:
- whether ERROR level is enabled
-
output
public void output(LogLevel level, java.lang.String message)
Description copied from interface:Logger
Outputs a log message at the specified level
-
-