public class AndroidHandler
extends java.util.logging.Handler
Logger handler that writes to the Android log. The
implementation is rather straightforward. The name of the logger serves as
the log tag. Only the log levels need to be converted appropriately. For
this purpose, the following mapping is being used:
| logger level | Android level |
|---|---|
| SEVERE | ERROR |
| WARNING | WARN |
| INFO | INFO |
| CONFIG | DEBUG |
| FINE, FINER, FINEST | VERBOSE |
| Constructor and Description |
|---|
AndroidHandler()
Constructs a new instance of the Android log handler.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
void |
publish(java.util.logging.Logger source,
java.lang.String tag,
java.util.logging.Level level,
java.lang.String message) |
void |
publish(java.util.logging.LogRecord record) |
public AndroidHandler()
public void close()
close in class java.util.logging.Handlerpublic void flush()
flush in class java.util.logging.Handlerpublic void publish(java.util.logging.LogRecord record)
publish in class java.util.logging.Handlerpublic void publish(java.util.logging.Logger source,
java.lang.String tag,
java.util.logging.Level level,
java.lang.String message)