Package ca.corbett.extras.logging
Class LogConsoleHandler
java.lang.Object
java.util.logging.Handler
ca.corbett.extras.logging.LogConsoleHandler
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.LogConsoleHandlerThe default logging level is ALL, but you can change this:
ca.corbett.extras.logging.LogConsoleHandler.level=SEVEREThis 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
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.logging.Handler
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, isLoggable, reportError, setEncoding, setErrorManager, setFilter, setFormatter, setLevel