|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--kotkabeans.Log.NamedLog
Title: NamedLog
Description: Named log file to log if this log is needed
Copyright: jyu Copyright (c) 2002
Company: jty
Usage:
To log only when selected to log, use named logs
Field Summary | |
protected boolean |
active
|
protected java.lang.String |
logname
|
Constructor Summary | |
Log.NamedLog()
|
Method Summary | |
boolean |
isActive()
Tells if named log is activated for logging or not |
void |
log(java.lang.String sentence)
Logs the sentence to log file if log is active |
void |
log(java.lang.String sentence,
java.lang.Exception e)
Logs the sentence and exception message and stack to logfile if log is active |
void |
logStack()
Logs current call stack to logfile if log is active |
void |
logStack(int ignoreCalls)
Logs current call stack to logfile if log is active |
void |
setActive(boolean b)
Sets if named log is activated for logging or not |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected boolean active
protected java.lang.String logname
Constructor Detail |
public Log.NamedLog()
Method Detail |
public void log(java.lang.String sentence)
sentence
- String to logpublic void log(java.lang.String sentence, java.lang.Exception e)
sentence
- String to loge
- Exception to logpublic void logStack(int ignoreCalls)
ignoreCalls
- how many call levels ignoredpublic void logStack()
public void setActive(boolean b)
b
- Value to set for activepublic boolean isActive()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |