public class SystemLoggingPlugin extends java.lang.Object implements EncogPluginLogging1
TYPE_LOGGING, TYPE_SERVICE| Constructor and Description |
|---|
SystemLoggingPlugin() |
| Modifier and Type | Method and Description |
|---|---|
int |
getLogLevel() |
java.lang.String |
getPluginDescription() |
java.lang.String |
getPluginName() |
int |
getPluginServiceType() |
int |
getPluginType() |
static java.lang.String |
getStackTrace(java.lang.Throwable aThrowable)
Create a stack trace.
|
void |
log(int level,
java.lang.String message)
Log the message.
|
void |
log(int level,
java.lang.Throwable t)
Log a throwable at the specified level.
|
void |
setLogLevel(int level)
Set the logging level.
|
void |
startConsoleLogging()
Start logging to the console.
|
void |
stopLogging()
Stop any console or file logging.
|
public static java.lang.String getStackTrace(java.lang.Throwable aThrowable)
aThrowable - The throwable to create the trace for.public final int getLogLevel()
getLogLevel in interface EncogPluginLogging1public final java.lang.String getPluginDescription()
getPluginDescription in interface EncogPluginBasepublic final java.lang.String getPluginName()
getPluginName in interface EncogPluginBasepublic final int getPluginType()
getPluginType in interface EncogPluginBasepublic final void log(int level,
java.lang.String message)
log in interface EncogPluginLogging1level - The logging level.message - The logging message.public final void log(int level,
java.lang.Throwable t)
log in interface EncogPluginLogging1level - The level to log at.t - The error to log.public final void setLogLevel(int level)
level - The logging level.public final void startConsoleLogging()
public final void stopLogging()
public int getPluginServiceType()
getPluginServiceType in interface EncogPluginBase