Previous Topic

Next Topic

Book Contents

Book Index

Logger utility

The com.prosyst.util.log package contains loggers for writing log messages in a most optimal way.

The generic logger class is Logger, which outlines the API for logging information. It has extensions for directing the logs to the ConsoleLogger system output and to one or more files – FileLogger and FileLoggerExt, the latter being used in the case of separate logging of the error exception traces.

AsyncLogger dumps the log message to the console, but will first store the messages in the queue, and then will print the entry asynchronously. This is particularly useful if the console output is too slow – like in graphic intensive applications or serial terminals.

The LogListener represents a simple interface for listening to logs generated by the framework core. Bundles which listen to framework logs must register a service with this interface.