public abstract class Logger extends java.lang.Object implements Clonable
Modifier and Type | Class and Description |
---|---|
static class |
Logger.LogLevel
Level of detail to log.
|
Modifier and Type | Field and Description |
---|---|
static int |
NUM_LEVELS |
Constructor and Description |
---|
Logger() |
Modifier and Type | Method and Description |
---|---|
Logger |
clone() |
abstract void |
debug(java.lang.Object obj)
Log information at the `DEBUG' level
|
abstract void |
error(java.lang.Object obj)
Log information at the `ERROR' level
|
abstract void |
fatal(java.lang.Object obj)
Log information at the `FATAL' level
|
abstract Logger.LogLevel |
getLogLevel()
Get the minimum log level that is being recorded
|
static Logger |
getSystemLogger() |
abstract void |
info(java.lang.Object obj)
Log information at the `INFO' level
|
abstract void |
print(java.lang.Object obj)
Print information to the `INFO' log
|
abstract void |
print(java.lang.Object obj,
Logger.LogLevel level)
Print information at the supplied level to the log
|
abstract void |
println(java.lang.Object obj)
Print information to the `INFO' log with trailing newline
|
abstract void |
println(java.lang.Object obj,
Logger.LogLevel level)
Print information at the supplied level to the log, with a trailing newline
|
abstract void |
setLogLevel(Logger.LogLevel level)
Set the minimum log level to record
|
static void |
setSystemLogger(Logger logger) |
abstract void |
trace(java.lang.Object obj)
Log information at the `TRACE' level
|
abstract void |
warn(java.lang.Object obj)
Log information at the `WARN' level
|
public abstract void trace(java.lang.Object obj)
obj
- object to logpublic abstract void debug(java.lang.Object obj)
obj
- object to logpublic abstract void info(java.lang.Object obj)
obj
- object to logpublic abstract void warn(java.lang.Object obj)
obj
- object to logpublic abstract void error(java.lang.Object obj)
obj
- object to logpublic abstract void fatal(java.lang.Object obj)
obj
- object to logpublic abstract void print(java.lang.Object obj, Logger.LogLevel level)
obj
- object to loglevel
- desired levelpublic abstract void println(java.lang.Object obj, Logger.LogLevel level)
obj
- object to loglevel
- desired levelpublic abstract void print(java.lang.Object obj)
obj
- object to logpublic abstract void println(java.lang.Object obj)
obj
- object to logpublic abstract void setLogLevel(Logger.LogLevel level)
level
- minimum log levelpublic abstract Logger.LogLevel getLogLevel()
public static Logger getSystemLogger()
public static void setSystemLogger(Logger logger)