|
JNodeOS v1.1.5 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.utah.janos.io.Log
A Janos Log interface. A log maintains a buffer of a fixed number
of messages. All messages passed to the log via logMsg()
are sent to all listeners on the log.
Really just a glorified ring buffer.
Patterned after syslog(3).
Field Summary | |
static int |
ALERT
Action must be taken immediately. |
static int |
CRIT
Critical conditions. |
static int |
DBG
Debug-level messages. |
static int |
EMERG
System is unusable. |
static int |
ERR
Error conditions. |
static int |
INFO
Informational messages. |
static int |
NOTICE
Normal but significant condition. |
static int |
WARNING
Warning conditions. |
Constructor Summary | |
Log(java.lang.String prefix)
Create a log. |
Method Summary | |
void |
addListener(LogListener ll)
Add a listener to this log. |
void |
logMsg(int level,
java.lang.String msg)
Add a message to this log. |
void |
logThrowable(int level,
java.lang.Throwable th)
Add a message to the log thats a stack trace. |
void |
removeListener(LogListener ll)
|
void |
setPrefix(java.lang.String prefix)
Set the prefix message. |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static final int EMERG
public static final int ALERT
public static final int CRIT
public static final int ERR
public static final int WARNING
public static final int NOTICE
public static final int INFO
public static final int DBG
Constructor Detail |
public Log(java.lang.String prefix)
Method Detail |
public void setPrefix(java.lang.String prefix)
public void logMsg(int level, java.lang.String msg)
public void logThrowable(int level, java.lang.Throwable th)
public void addListener(LogListener ll)
public void removeListener(LogListener ll)
|
JNodeOS v1.1.5 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |