public final class Log extends Object
Modifier and Type | Class and Description |
---|---|
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 and Description |
---|
Log() |
Modifier and Type | Method and Description |
---|---|
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.
|
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 newlineCopyright ? 2012–2018 Aerospike, Inc. All rights reserved.