|
Basic Logger 1.0-SNAPSHOT
Basic logger written in Java
|
Public Member Functions | |
| ConsoleLogger (String name) | |
| Public Member Functions inherited from ge.edu.sangu.logger.Logger | |
| Logger (String name) | |
| Logger (String name, Formatter formatter) | |
| String | getName () |
| Formatter | getFormatter () |
| void | trace (String message, Object... args) |
| void | debug (String message, Object... args) |
| void | info (String message, Object... args) |
| void | warn (String message, Object... args) |
| void | error (String message, Object... args) |
Protected Member Functions | |
| void | writeToOutput (String output) |
| Protected Member Functions inherited from ge.edu.sangu.logger.Logger | |
| synchronized void | print (@NotNull Level level, String message, @NotNull Object... args) throws IllegalArgumentException |
ConsoleLogger is a concrete implementation of the Logger class that logs messages to the system console. This class provides a direct mechanism for writing log messages to the standard output stream using System#out.
The log messages are formatted using the inherited Formatter instance from the parent Logger class and then printed to the console.
|
protected |
Outputs a constructed log message into an arbitrary output stream.
| output | output string |
Reimplemented from ge.edu.sangu.logger.Logger.