|
barcode4j 2.1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.krysalis.barcode4j.cli.AdvancedConsoleLogger
public class AdvancedConsoleLogger
Special Logger implementation that can split output between stdout and stderr based on the log level and can omit the log level prefix.
Field Summary | |
---|---|
static int |
LEVEL_DEBUG
Log level: debug |
static int |
LEVEL_DISABLED
Log level: disabled |
static int |
LEVEL_ERROR
Log level: errors |
static int |
LEVEL_FATAL
Log level: fatal errors |
static int |
LEVEL_INFO
Log level: info |
static int |
LEVEL_WARN
Log level: warnings |
Constructor Summary | |
---|---|
AdvancedConsoleLogger()
Default constructor. |
|
AdvancedConsoleLogger(int logLevel,
boolean prefix,
java.io.PrintStream out,
java.io.PrintStream err)
Constructor will full configurability. |
Method Summary | |
---|---|
void |
debug(java.lang.String msg)
|
void |
debug(java.lang.String msg,
java.lang.Throwable t)
|
void |
error(java.lang.String msg)
|
void |
error(java.lang.String msg,
java.lang.Throwable t)
|
void |
fatalError(java.lang.String msg)
|
void |
fatalError(java.lang.String msg,
java.lang.Throwable t)
|
org.apache.avalon.framework.logger.Logger |
getChildLogger(java.lang.String name)
|
void |
info(java.lang.String msg)
|
void |
info(java.lang.String msg,
java.lang.Throwable t)
|
boolean |
isDebugEnabled()
|
boolean |
isErrorEnabled()
|
boolean |
isFatalErrorEnabled()
|
boolean |
isInfoEnabled()
|
boolean |
isWarnEnabled()
|
void |
warn(java.lang.String msg)
|
void |
warn(java.lang.String msg,
java.lang.Throwable t)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int LEVEL_DEBUG
public static final int LEVEL_INFO
public static final int LEVEL_WARN
public static final int LEVEL_ERROR
public static final int LEVEL_FATAL
public static final int LEVEL_DISABLED
Constructor Detail |
---|
public AdvancedConsoleLogger(int logLevel, boolean prefix, java.io.PrintStream out, java.io.PrintStream err)
logLevel
- One of the AdvancedConsoleLogger.LEVEL_* constants.prefix
- false disables "[DEBUG] ", "[INFO] " prefixesout
- PrintStream to use for stdout/System.outerr
- PrintStream to use for stderr/System.errpublic AdvancedConsoleLogger()
Method Detail |
---|
public void debug(java.lang.String msg)
debug
in interface org.apache.avalon.framework.logger.Logger
Logger.debug(String)
public void debug(java.lang.String msg, java.lang.Throwable t)
debug
in interface org.apache.avalon.framework.logger.Logger
Logger.debug(String, Throwable)
public boolean isDebugEnabled()
isDebugEnabled
in interface org.apache.avalon.framework.logger.Logger
Logger.isDebugEnabled()
public void info(java.lang.String msg)
info
in interface org.apache.avalon.framework.logger.Logger
Logger.info(String)
public void info(java.lang.String msg, java.lang.Throwable t)
info
in interface org.apache.avalon.framework.logger.Logger
Logger.info(String, Throwable)
public boolean isInfoEnabled()
isInfoEnabled
in interface org.apache.avalon.framework.logger.Logger
Logger.isInfoEnabled()
public void warn(java.lang.String msg)
warn
in interface org.apache.avalon.framework.logger.Logger
Logger.warn(String)
public void warn(java.lang.String msg, java.lang.Throwable t)
warn
in interface org.apache.avalon.framework.logger.Logger
Logger.warn(String, Throwable)
public boolean isWarnEnabled()
isWarnEnabled
in interface org.apache.avalon.framework.logger.Logger
Logger.isWarnEnabled()
public void error(java.lang.String msg)
error
in interface org.apache.avalon.framework.logger.Logger
Logger.error(String)
public void error(java.lang.String msg, java.lang.Throwable t)
error
in interface org.apache.avalon.framework.logger.Logger
Logger.error(String, Throwable)
public boolean isErrorEnabled()
isErrorEnabled
in interface org.apache.avalon.framework.logger.Logger
Logger.isErrorEnabled()
public void fatalError(java.lang.String msg)
fatalError
in interface org.apache.avalon.framework.logger.Logger
Logger.fatalError(String)
public void fatalError(java.lang.String msg, java.lang.Throwable t)
fatalError
in interface org.apache.avalon.framework.logger.Logger
Logger.fatalError(String, Throwable)
public boolean isFatalErrorEnabled()
isFatalErrorEnabled
in interface org.apache.avalon.framework.logger.Logger
Logger.isFatalErrorEnabled()
public org.apache.avalon.framework.logger.Logger getChildLogger(java.lang.String name)
getChildLogger
in interface org.apache.avalon.framework.logger.Logger
Logger.getChildLogger(String)
|
barcode4j 2.1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |