public class DevLogHandler
extends java.util.logging.StreamHandler
Constructor and Description |
---|
DevLogHandler(LocalLogService serviceToUse)
Creates a new LogHandler that writes log records to the LocalLogService.
|
Modifier and Type | Method and Description |
---|---|
int |
convertLogLevel(java.util.logging.Level level) |
static java.lang.String |
getRequestId() |
void |
publish(java.util.logging.LogRecord record)
Writes an application-level log to the LocalLogService.
|
close, flush, isLoggable, setEncoding, setOutputStream
public DevLogHandler(LocalLogService serviceToUse)
public void publish(java.util.logging.LogRecord record)
publish
in class java.util.logging.StreamHandler
record
- The application-level log that should be recorded.StreamHandler.publish(LogRecord)
public int convertLogLevel(java.util.logging.Level level)
public static java.lang.String getRequestId()