|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.aerospike.client.Log
public final class Log
Aerospike client logging facility. Logs can be filtered and message callbacks can be defined to control how log messages are written.
Nested Class Summary | |
---|---|
static interface |
Log.Callback
An object implementing this interface may be passed in to setCallback() ,
so the caller can channel Aerospike client logs as desired. |
static class |
Log.Level
Log escalation level. |
Constructor Summary | |
---|---|
Log()
|
Method Summary | |
---|---|
static void |
debug(String message)
Log an debug message. |
static boolean |
debugEnabled()
Determine if debug log level is enabled. |
static void |
error(String message)
Log an error message. |
static void |
info(String message)
Log an info message. |
static boolean |
infoEnabled()
Determine if info log level is enabled. |
static void |
log(Log.Level level,
String message)
Filter and forward message to callback. |
static void |
setCallback(Log.Callback callback)
Set optional log callback implementation. |
static void |
setLevel(Log.Level level)
Set log level filter. |
static void |
warn(String message)
Log a warning message. |
static boolean |
warnEnabled()
Determine if warning log level is enabled. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Log()
Method Detail |
---|
public static void setLevel(Log.Level level)
level
- only show logs at this or more urgent levelpublic static void setCallback(Log.Callback callback)
callback
- Log.Callback
implementationpublic static boolean warnEnabled()
public static boolean infoEnabled()
public static boolean debugEnabled()
public static void error(String message)
message
- message string not terminated with a newlinepublic static void warn(String message)
message
- message string not terminated with a newlinepublic static void info(String message)
message
- message string not terminated with a newlinepublic static void debug(String message)
message
- message string not terminated with a newlinepublic static void log(Log.Level level, String message)
level
- message severity levelmessage
- message string not terminated with a newline
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |