|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectmandala.util.Syslog
This class provide a centralized point for logging in a program. log message, debug message, error message are managed by this class.
| Field Summary | |
boolean |
DEBUG
Describe variable DEBUG here. |
static String |
DEBUG_VALUE_PROPERTY
|
Object |
header
Describe variable header here. |
boolean |
LOG
Describe variable LOG here. |
| Constructor Summary | |
Syslog()
|
|
| Method Summary | |
void |
alert(String reason)
Describe alert method here. |
void |
debug(Object msg)
Describe debug method here. |
void |
emergency(String source,
String reason)
Describe emergency method here. |
void |
error(String reason)
Describe error method here. |
void |
error(Throwable exception)
Describe error method here. |
void |
error(Throwable ex,
String reason)
Describe error method here. |
void |
exception(Throwable ex)
Describe exception method here. |
void |
exception(Throwable ex,
String reason)
Describe exception method here. |
void |
log(Object msg)
Describe log method here. |
void |
setDebugStream(PrintWriter debugStream)
Describe setDebugStream method here. |
void |
setDebugStream(String filename)
Describe setDebugStream method here. |
void |
setErrorStream(PrintWriter errorStream)
Describe setErrorStream method here. |
void |
setErrorStream(String filename)
Describe setErrorStream method here. |
void |
setLogStream(PrintWriter logStream)
Describe setLogStream method here. |
void |
setLogStream(String filename)
Describe setLogStream method here. |
void |
trace()
Describe trace method here. |
void |
trace(String reason)
Describe trace method here. |
void |
warning(String reason)
Describe warning method here. |
void |
warning(Throwable ex)
Describe warning method here. |
void |
warning(Throwable ex,
String reason)
Describe warning method here. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String DEBUG_VALUE_PROPERTY
public boolean DEBUG
DEBUG here.
public boolean LOG
LOG here.
public Object header
header here.
| Constructor Detail |
public Syslog()
| Method Detail |
public void setDebugStream(PrintWriter debugStream)
setDebugStream method here.
debugStream - a PrintWriter valuepublic void setLogStream(PrintWriter logStream)
setLogStream method here.
logStream - a PrintWriter valuepublic void setErrorStream(PrintWriter errorStream)
setErrorStream method here.
errorStream - a PrintWriter value
public void setDebugStream(String filename)
throws IOException
setDebugStream method here.
filename - a String value
IOException - if an error occurs
public void setLogStream(String filename)
throws IOException
setLogStream method here.
filename - a String value
IOException - if an error occurs
public void setErrorStream(String filename)
throws IOException
setErrorStream method here.
filename - a String value
IOException - if an error occurspublic void exception(Throwable ex)
exception method here.
ex - a Throwable value
public void exception(Throwable ex,
String reason)
exception method here.
ex - a Throwable valuereason - a String valuepublic void warning(Throwable ex)
warning method here.
ex - a Throwable value
public void warning(Throwable ex,
String reason)
warning method here.
ex - a Throwable valuereason - a String valuepublic void warning(String reason)
warning method here.
reason - a String valuepublic void log(Object msg)
log method here.
msg - an Object valuepublic void debug(Object msg)
debug method here.
msg - an Object value
public void error(Throwable ex,
String reason)
error method here.
ex - a Throwable valuereason - a String valuepublic void error(Throwable exception)
error method here.
exception - a Throwable valuepublic void error(String reason)
error method here.
reason - a String valuepublic void trace(String reason)
trace method here.
reason - a String valuepublic void trace()
trace method here.
public void alert(String reason)
alert method here.
reason - a String value
public void emergency(String source,
String reason)
emergency method here.
source - a String valuereason - a String value
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||