public class SimulationLoggerUtil extends Object
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.| Modifier and Type | Field and Description |
|---|---|
static String |
LOG_PATTERN
pattern to use for simulation appender
|
| Constructor and Description |
|---|
SimulationLoggerUtil() |
| Modifier and Type | Method and Description |
|---|---|
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
|
public static final String LOG_PATTERN
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 removepublic static void showSimulationLogConsole(String simulationName) throws IllegalArgumentException, IOException
simulationName - name of the simulation to useIOExceptionIllegalArgumentExceptionCopyright © 1999–2013 CodeLutin. All rights reserved.