public class Log extends Object
Modifier and Type | Field and Description |
---|---|
static Level |
DEBUG |
static Level |
ERROR |
static Level |
MAIN |
static Level |
TRACE |
static Level |
TRIVIAL |
Constructor and Description |
---|
Log(Class myClass)
Create a log by handing it the class you are running in.
|
Modifier and Type | Method and Description |
---|---|
void |
debug(String msg)
low level debugging.
|
void |
debug(String msg,
Throwable t)
low level debugging.
|
void |
error(String msg)
wildly unexpected error condition.
|
void |
error(String msg,
Throwable t)
wildly unexpected error condition.
|
void |
info(String msg)
lower level message.
|
void |
info(String msg,
Throwable t)
lower level message.
|
boolean |
isDebugEnabled() |
boolean |
isErrorEnabled() |
boolean |
isErrorWarn() |
boolean |
isInfoEnabled() |
boolean |
isMainEnabled() |
boolean |
isTraceEnabled() |
boolean |
isTrivialEnabled() |
void |
main(String msg)
Highest level message.
|
void |
main(String msg,
Throwable t)
Highest level message.
|
void |
trace(String msg)
messages at about the level of high order function calls.
|
void |
trace(String msg,
Throwable t)
messages at about the level of high order function calls.
|
void |
trivial(String msg)
very minute messages about tiny events.
|
void |
trivial(String msg,
Throwable t)
very minute messages about tiny events.
|
void |
warn(String msg)
recoverable condition.
|
void |
warn(String msg,
Throwable t)
recoverable condition.
|
public static Level ERROR
public static Level MAIN
public static Level TRACE
public static Level DEBUG
public static Level TRIVIAL
public Log(Class myClass)
public boolean isErrorEnabled()
public void error(String msg)
public boolean isErrorWarn()
public void warn(String msg)
public boolean isMainEnabled()
public void main(String msg)
public boolean isInfoEnabled()
public void info(String msg)
public boolean isTraceEnabled()
public void trace(String msg)
public void trace(String msg, Throwable t)
public boolean isDebugEnabled()
public void debug(String msg)
public boolean isTrivialEnabled()
public void trivial(String msg)
Copyright © 2017. All rights reserved.