Package | Description |
---|---|
com.aldebaran.qi.log |
Modifier and Type | Method and Description |
---|---|
LogLevel |
LogLevel.lessImportant()
Obtain level less important in hierarchy
|
LogLevel |
LogLevel.moreImportant()
Obtain level more important in hierarchy
|
static LogLevel |
LogLevel.obtainLogLevel(int level)
|
static LogLevel |
LogLevel.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LogLevel[] |
LogLevel.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
static void |
LogReport.log(LogLevel logLevel,
String message)
Publish a log
|
void |
DefaultLogCatcher.log(LogLevel logLevel,
String message)
Called each time a log happen.
It is called only for
LogLevel the instance is registered for. |
void |
LogCatcher.log(LogLevel logLevel,
String message)
Called each time a log happen.
It is called only for
LogLevel the instance is registered
for.
Don't do long operation inside this method. |
static void |
LogReport.register(LogCatcher logCatcher,
LogLevel... logLevels)
Register a
LogCatcher for specified log levels.
For SILENT nothing is register, since its means no log
report. |
static void |
LogReport.registerAtLeast(LogCatcher logCatcher,
LogLevel logLevel)
Register
LogCatcher for given logLevel and all more important
that given one.
Importance log level from more important to less is:
FATAL
ERROR
WARNING
INFORMATION
VERBOSE
DEBUG
Note that SILENT is a special level for no log at all |
static void |
LogReport.unregister(LogCatcher logCatcher,
LogLevel... logLevels)
Unregister a
LogCatcher for specified log levels. |
static void |
LogReport.unregisterAtMost(LogCatcher logCatcher,
LogLevel logLevel)
Register
LogCatcher for given logLevel and all less important
that given one.
Importance log level from more important to less is:
FATAL
ERROR
WARNING
INFORMATION
VERBOSE
DEBUG
Note that SILENT is a special level for no log at all |
Copyright © 2020. All rights reserved.