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 TypeMethodDescriptionvoidWrites a log at DEBUG level.voidWrites a log at ERROR level.voidWrites a log at ERROR level with detail on exception.voidWrites a log at FATAL level.voidWrites a log at ERROR level with detail on exception.voidWrites a log at INFO level.protected Stringlog(PrintStream out, int level, String txt, Throwable e) Method to output a log.voidWrites a log at WARN level.voidWrites 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:LoggerInterfaceWrites a log at DEBUG level.- Specified by:
debugin interfaceLoggerInterface- Parameters:
txt- String to write.
-
info
Description copied from interface:LoggerInterfaceWrites a log at INFO level.- Specified by:
infoin interfaceLoggerInterface- Parameters:
txt- String to write.
-
warn
Description copied from interface:LoggerInterfaceWrites a log at WARN level.- Specified by:
warnin interfaceLoggerInterface- Parameters:
txt- String to write.
-
warnEx
Description copied from interface:LoggerInterfaceWrites a log at WARN level with detail on exception.- Specified by:
warnExin interfaceLoggerInterface- Parameters:
txt- String to write.e- Exception.
-
error
Description copied from interface:LoggerInterfaceWrites a log at ERROR level.- Specified by:
errorin interfaceLoggerInterface- Parameters:
txt- String to write.
-
errorEx
Description copied from interface:LoggerInterfaceWrites a log at ERROR level with detail on exception.- Specified by:
errorExin interfaceLoggerInterface- Parameters:
txt- String to write.e- Exception.
-
fatal
Description copied from interface:LoggerInterfaceWrites a log at FATAL level.- Specified by:
fatalin interfaceLoggerInterface- Parameters:
txt- String to write.
-
fatalEx
Description copied from interface:LoggerInterfaceWrites a log at ERROR level with detail on exception.- Specified by:
fatalExin interfaceLoggerInterface- Parameters:
txt- String to write.e- Exception.
-