class JavaLogger extends java.lang.Object implements FsmLogger
Logger
Modifier and Type | Field and Description |
---|---|
private java.util.logging.Logger |
logger
The Java logger object.
|
Constructor and Description |
---|
JavaLogger(java.lang.Class<?> clazz)
Create the object.
|
JavaLogger(java.lang.Class<?> clazz,
java.lang.String instance)
Create the object.
|
JavaLogger(java.lang.String name)
Create the object.
|
Modifier and Type | Method and Description |
---|---|
void |
debug(java.lang.String message)
Log a debug message.
|
void |
debug(java.lang.String message,
java.lang.Throwable throwable)
Log a debug message.
|
void |
error(java.lang.String message)
Log an error message.
|
void |
error(java.lang.String message,
java.lang.Throwable throwable)
Log an error message.
|
void |
fatal(java.lang.String message)
Log a fatal message.
|
void |
fatal(java.lang.String message,
java.lang.Throwable throwable)
Log a fatal message.
|
java.lang.String |
getName()
Get name of the logger.
|
void |
info(java.lang.String message)
Log an info message.
|
void |
info(java.lang.String message,
java.lang.Throwable throwable)
Log an info message.
|
boolean |
isDebugEnabled()
Get status of debug messages logging in this logger.
|
boolean |
isInfoEnabled()
Get status of info messages logging in this logger.
|
boolean |
isTraceEnabled()
Get status of trace messages logging in this logger.
|
void |
trace(java.lang.String message)
Log a trace message.
|
void |
trace(java.lang.String message,
java.lang.Throwable throwable)
Log a trace message.
|
void |
warn(java.lang.String message)
Log a warning message.
|
void |
warn(java.lang.String message,
java.lang.Throwable throwable)
Log a warning message.
|
public JavaLogger(java.lang.Class<?> clazz)
clazz
- the classpublic JavaLogger(java.lang.Class<?> clazz, java.lang.String instance)
clazz
- the classinstance
- the class instancepublic JavaLogger(java.lang.String name)
name
- the logger namepublic java.lang.String getName()
FsmLogger
public void fatal(java.lang.String message)
FsmLogger
public void fatal(java.lang.String message, java.lang.Throwable throwable)
FsmLogger
public void error(java.lang.String message)
FsmLogger
public void error(java.lang.String message, java.lang.Throwable throwable)
FsmLogger
public void warn(java.lang.String message)
FsmLogger
public void warn(java.lang.String message, java.lang.Throwable throwable)
FsmLogger
public void info(java.lang.String message)
FsmLogger
public void info(java.lang.String message, java.lang.Throwable throwable)
FsmLogger
public void debug(java.lang.String message)
FsmLogger
public void debug(java.lang.String message, java.lang.Throwable throwable)
FsmLogger
public void trace(java.lang.String message)
FsmLogger
public void trace(java.lang.String message, java.lang.Throwable throwable)
FsmLogger
public boolean isInfoEnabled()
FsmLogger
isInfoEnabled
in interface FsmLogger
public boolean isDebugEnabled()
FsmLogger
isDebugEnabled
in interface FsmLogger
public boolean isTraceEnabled()
FsmLogger
isTraceEnabled
in interface FsmLogger
Copyright 2013 Michal Turek, AnotherFSM.