|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectscone.util.ErrorLog
public class ErrorLog
class to log all exceptions into a file or any outputstream
Field Summary | |
---|---|
protected static boolean |
catchesErr
|
Constructor Summary | |
---|---|
ErrorLog()
|
Method Summary | |
---|---|
static void |
catchErr()
catches System.err |
static void |
log(java.lang.Object obj,
java.lang.String method,
java.lang.String msg,
java.lang.Exception e)
prints an object where an exception occurred and the exception to the outputstream. |
static void |
print(java.lang.Object o)
prints an object to the outputstream |
static void |
println(java.lang.Object o)
prints an object to the outputstream with a newline |
static void |
releaseErr()
releases System.err |
static void |
setOutputStream(java.io.OutputStream out)
sets the outputstream |
static void |
standardInit()
sets the outputstream to the standard output file: log/scone/errors.log |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static boolean catchesErr
Constructor Detail |
---|
public ErrorLog()
Method Detail |
---|
public static void setOutputStream(java.io.OutputStream out)
out
- the outputstreampublic static void catchErr()
public static void releaseErr()
public static void standardInit()
public static void print(java.lang.Object o)
o
- the objectpublic static void println(java.lang.Object o)
o
- the objectpublic static void log(java.lang.Object obj, java.lang.String method, java.lang.String msg, java.lang.Exception e)
obj
- the objectmethod
- the name of the method where the Exception occurredmsg
- the messagee
- the Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |