Package com.igormaznitsa.jcp.logger
Class SystemOutLogger
- java.lang.Object
-
- com.igormaznitsa.jcp.logger.SystemOutLogger
-
- All Implemented Interfaces:
PreprocessorLogger
public class SystemOutLogger extends java.lang.Object implements PreprocessorLogger
An Easy logger which just output log messages into the system output streams
-
-
Field Summary
Fields Modifier and Type Field Description private static boolean
FLAG_DEBUG_LEVEL
static java.lang.String
PROPERTY_DEBUG_FLAG
Name of system property to enable debug level logging.
-
Constructor Summary
Constructors Constructor Description SystemOutLogger()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
debug(java.lang.String text)
Log a debug messagevoid
error(java.lang.String text)
Log an error messagevoid
info(java.lang.String text)
Log an information messagevoid
warning(java.lang.String text)
Log a warning message
-
-
-
Field Detail
-
PROPERTY_DEBUG_FLAG
public static final java.lang.String PROPERTY_DEBUG_FLAG
Name of system property to enable debug level logging.- See Also:
- Constant Field Values
-
FLAG_DEBUG_LEVEL
private static final boolean FLAG_DEBUG_LEVEL
-
-
Method Detail
-
error
public void error(java.lang.String text)
Description copied from interface:PreprocessorLogger
Log an error message- Specified by:
error
in interfacePreprocessorLogger
- Parameters:
text
- the text to be output into the error log
-
info
public void info(java.lang.String text)
Description copied from interface:PreprocessorLogger
Log an information message- Specified by:
info
in interfacePreprocessorLogger
- Parameters:
text
- the text to be output into the information log
-
warning
public void warning(java.lang.String text)
Description copied from interface:PreprocessorLogger
Log a warning message- Specified by:
warning
in interfacePreprocessorLogger
- Parameters:
text
- the text to be output into the warning log
-
debug
public void debug(java.lang.String text)
Description copied from interface:PreprocessorLogger
Log a debug message- Specified by:
debug
in interfacePreprocessorLogger
- Parameters:
text
- the text to be output into the information log
-
-