This class provides a centralize way to report messages in the terminal through the application, including messages that are always printed, debug information, error messages and others.
Create a new logger
Private
Whether this logger is turned on
Log a message as debug information, if the level allows it and the logger is on.
The message to print.
Optional
A style on which to print the message
the receiver logger.
Log a message as an error, if the level allows it and the logger is on.
Log a message as information, if the level allows it and the logger is on.
Answers if the first level is greater or equal than the second one.
The first level to compare
The second level to compare.
true if the first level is greater or equal than the second, false otherwise.
true
false
Log a message regardless of the active level, but only if the logger is on.
Turn this logger off. If already off, nothing happens.
Turn this logger on. If already on, nothing happens.
Print the given message in the terminal, if the log level allows it and the logger is on.
The message to print
The style to use for printing.
The actual level on which the message should be printed.
Log a message as an warning, if the level allows it and the logger is on.
This class provides a centralize way to report messages in the terminal through the application, including messages that are always printed, debug information, error messages and others.