Package org.jmol.util
Class DefaultLogger
java.lang.Object
org.jmol.util.DefaultLogger
- All Implemented Interfaces:
LoggerInterface
Default implementation of the logger.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Writes a log at DEBUG level.void
Writes a log at ERROR level.void
Writes a log at ERROR level with detail on exception.void
Writes a log at FATAL level.void
Writes a log at ERROR level with detail on exception.void
Writes a log at INFO level.protected String
log
(PrintStream out, int level, String txt, Throwable e) Method to output a log.void
Writes a log at WARN level.void
Writes a log at WARN level with detail on exception.
-
Constructor Details
-
DefaultLogger
public DefaultLogger()
-
-
Method Details
-
log
Method to output a log.- Parameters:
out
- Output stream.level
- Log level.txt
- Text to log.e
- Exception.
-
debug
Description copied from interface:LoggerInterface
Writes a log at DEBUG level.- Specified by:
debug
in interfaceLoggerInterface
- Parameters:
txt
- String to write.
-
info
Description copied from interface:LoggerInterface
Writes a log at INFO level.- Specified by:
info
in interfaceLoggerInterface
- Parameters:
txt
- String to write.
-
warn
Description copied from interface:LoggerInterface
Writes a log at WARN level.- Specified by:
warn
in interfaceLoggerInterface
- Parameters:
txt
- String to write.
-
warnEx
Description copied from interface:LoggerInterface
Writes a log at WARN level with detail on exception.- Specified by:
warnEx
in interfaceLoggerInterface
- Parameters:
txt
- String to write.e
- Exception.
-
error
Description copied from interface:LoggerInterface
Writes a log at ERROR level.- Specified by:
error
in interfaceLoggerInterface
- Parameters:
txt
- String to write.
-
errorEx
Description copied from interface:LoggerInterface
Writes a log at ERROR level with detail on exception.- Specified by:
errorEx
in interfaceLoggerInterface
- Parameters:
txt
- String to write.e
- Exception.
-
fatal
Description copied from interface:LoggerInterface
Writes a log at FATAL level.- Specified by:
fatal
in interfaceLoggerInterface
- Parameters:
txt
- String to write.
-
fatalEx
Description copied from interface:LoggerInterface
Writes a log at ERROR level with detail on exception.- Specified by:
fatalEx
in interfaceLoggerInterface
- Parameters:
txt
- String to write.e
- Exception.
-