Package com.igormaznitsa.jcp.logger
Class SystemOutLogger
- java.lang.Object
-
- com.igormaznitsa.jcp.logger.SystemOutLogger
-
- All Implemented Interfaces:
PreprocessorLogger
public final 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 booleanFLAG_DEBUG_LEVELstatic java.lang.StringPROPERTY_DEBUG_FLAGName 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 voiddebug(java.lang.String text)Log a debug messagebooleanequals(java.lang.Object value)voiderror(java.lang.String text)Log an error messageinthashCode()voidinfo(java.lang.String text)Log an information messagevoidwarning(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
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object value)
- Overrides:
equalsin classjava.lang.Object
-
error
public void error(java.lang.String text)
Description copied from interface:PreprocessorLoggerLog an error message- Specified by:
errorin interfacePreprocessorLogger- Parameters:
text- the text to be output into the error log
-
info
public void info(java.lang.String text)
Description copied from interface:PreprocessorLoggerLog an information message- Specified by:
infoin interfacePreprocessorLogger- Parameters:
text- the text to be output into the information log
-
warning
public void warning(java.lang.String text)
Description copied from interface:PreprocessorLoggerLog a warning message- Specified by:
warningin interfacePreprocessorLogger- Parameters:
text- the text to be output into the warning log
-
debug
public void debug(java.lang.String text)
Description copied from interface:PreprocessorLoggerLog a debug message- Specified by:
debugin interfacePreprocessorLogger- Parameters:
text- the text to be output into the information log
-
-