|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.ifremer.isisfish.logging.SimulationLoggerUtil
public class SimulationLoggerUtil
FIXME poussin, a priori cette classe ne supporte pas plusieurs simulation en meme temps, ce qui est le cas si on a plusieurs processeurs de dispo :( Usefull class for dealing with hot configuration of log4J. this is temporary we must find a way to abstract this layer.
the class offers three public static methods :addSimulationAppender(String, String, String, String, String, String)
to add a logger for a given simulation in a given thread, with simulLogLevel,
scriptLogLvel and libLogLevel given.
removeAppender(String, String) to remove a appender of a simulation
showSimulationLogConsole(String) to display the log console of
a simulation, given his name.
| Field Summary | |
|---|---|
static String |
LOG_PATTERN
pattern to use for simulation appender |
| Constructor Summary | |
|---|---|
SimulationLoggerUtil()
|
|
| Method Summary | |
|---|---|
static void |
addSimulationAppender(String filename,
String appenderId,
String simulLogLevel,
String scriptLogLevel,
String libLogLevel,
String threadName)
Add a simple FileAppender for a given simulation id. |
static void |
removeSimulationAppender(String appenderId)
Remove the appender used for simulation, add restore level to logger. |
static void |
showSimulationLogConsole(String simulationName)
Open a new log console for the given simulation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String LOG_PATTERN
| Constructor Detail |
|---|
public SimulationLoggerUtil()
| Method Detail |
|---|
public static void addSimulationAppender(String filename,
String appenderId,
String simulLogLevel,
String scriptLogLevel,
String libLogLevel,
String threadName)
throws IsisFishException
FileAppender for a given simulation id.
filename - the filename where appender store logsappenderId - the id of appender to addsimulLogLevel - simulator logger levellibLogLevel - libraries logger levelscriptLogLevel - scripts logger levelthreadName - the thread to exclude (if null don't use it)
IsisFishException - if we could not create appenderpublic static void removeSimulationAppender(String appenderId)
appenderId - the appender id to remove
public static void showSimulationLogConsole(String simulationName)
throws Exception
simulationName - name of the simulation to use
Exception - todo
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||