|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectinfo.informatica.log.LogAgent
public class LogAgent
Log Agent
This class distributes the log messages among the various loggers
| Constructor Summary | |
|---|---|
LogAgent(LogConfig logconf)
Creates a Log Agent according to specified configuration. |
|
| Method Summary | |
|---|---|
void |
closeLog()
|
TimerTask |
getTimerTask()
Returns a TimerTask than can be used to flush the logs from time to time |
LogEntry[] |
getUnmatched()
Returns the latest logs not matched by any rule |
long |
getUnmatchedCount()
Returns the count of the latest logs not matched by any rule |
boolean |
log(String ohost,
String clase,
int level,
String s)
Given a log message, distribute among loggers |
boolean |
log(String ohost,
String clase,
int level,
Throwable t,
String s)
Given a log message, distribute among loggers |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LogAgent(LogConfig logconf)
logconf - The log system configuration.
NullPointerException - if config is null.| Method Detail |
|---|
public boolean log(String ohost,
String clase,
int level,
String s)
throws LogException
ohost - Origin hostclase - Class producing the loglevel - Log levels - Log message
LogException
public boolean log(String ohost,
String clase,
int level,
Throwable t,
String s)
throws LogException
ohost - Origin hostclase - Class producing the loglevel - Log levelt - The throwable exception to be loggeds - Log message
LogException
public void closeLog()
throws LogException
LogExceptionpublic LogEntry[] getUnmatched()
public long getUnmatchedCount()
public TimerTask getTimerTask()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||