Class GrowJulHandler
java.lang.Object
java.util.logging.Handler
codes.grow.packages.betterstack.logging.GrowJulHandler
java.util.logging handler that forwards records to a LogClient.
java.util.logging.Logger.getLogger("").addHandler(new GrowJulHandler(logClient));
Levels map as SEVERE → ERROR, WARNING → WARN, INFO → INFO, CONFIG/FINE → DEBUG, FINER/FINEST →
TRACE. close() flushes but does not close the client (the application owns it).
-
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
-
Constructor Details
-
GrowJulHandler
Creates the handler.- Parameters:
client- destination
-
-
Method Details