Class LogConsoleHandler

java.lang.Object
java.util.logging.Handler
ca.corbett.extras.logging.LogConsoleHandler

public class LogConsoleHandler extends Handler
A logging handler implementation specifically to support the LogConsole within applications that use sc-util.

Your logging.properties should reference this class in the "handlers" directive:

handlers=java.util.logging.FileHandler,ca.corbett.extras.logging.LogConsoleHandler
The default logging level is ALL, but you can change this:
ca.corbett.extras.logging.LogConsoleHandler.level=SEVERE
This handler will use the SimpleFormatter, which you have presumably configured in your logging.properties already.

Once configuration changes are in place, your application code can use Logger methods to log as you normally would, and they will show up in the LogConsole.

Since:
2023-03-17
Author:
scorbo2