|
Bully Task (12.12.2005) | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.jku.fim.datalinksimulation.utils.Logger
public class Logger
Title: OSI Simulation Framework
Copyright: (c) 2004-05
Company: FIM@JKU, www.fim.uni-linz.ac.at
Field Summary | |
---|---|
protected java.util.ArrayList |
childrenLoggers
children loggers |
protected java.lang.String |
description
Logger description |
static int |
globalTime
Global logging time stamp |
protected int |
lastTimeStamp
last time when an event was logged |
protected java.lang.StringBuffer |
logs
logged text |
protected Logger |
parentLogger
parent logger |
Constructor Summary | |
---|---|
Logger(java.lang.String description)
Constructor to create a new logger for a component |
Method Summary | |
---|---|
void |
addChildLogger(Logger child)
Define a logger as logging child |
void |
clear()
Clears all logged events |
static void |
clearAllLogs()
Empties all logs |
java.util.List |
getChildrenLoggers()
|
java.lang.String |
getLog()
|
static java.util.List |
getRootLoggers()
|
void |
log(java.lang.String msg)
Log an event/message |
java.lang.String |
toString()
Each logger is represented with his description |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static int globalTime
protected java.lang.String description
protected java.lang.StringBuffer logs
protected int lastTimeStamp
protected java.util.ArrayList childrenLoggers
protected Logger parentLogger
Constructor Detail |
---|
public Logger(java.lang.String description)
description
- Description/name of logger componentMethod Detail |
---|
public static void clearAllLogs()
public static java.util.List getRootLoggers()
public void log(java.lang.String msg)
msg
- The event/message to logpublic java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getLog()
public void clear()
public void addChildLogger(Logger child)
child
- The childpublic java.util.List getChildrenLoggers()
|
Bully Task (12.12.2005) | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |