org.encog.plugin.system
public class SystemLoggingPlugin extends Object implements EncogPluginLogging1
TYPE_LOGGING, TYPE_SERVICE
Constructor and Description |
---|
SystemLoggingPlugin() |
Modifier and Type | Method and Description |
---|---|
int |
getLogLevel() |
String |
getPluginDescription() |
String |
getPluginName() |
int |
getPluginServiceType() |
int |
getPluginType() |
static String |
getStackTrace(Throwable aThrowable)
Create a stack trace.
|
void |
log(int level,
String message)
Log the message.
|
void |
log(int level,
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 String getStackTrace(Throwable aThrowable)
aThrowable
- The throwable to create the trace for.public final int getLogLevel()
getLogLevel
in interface EncogPluginLogging1
public final String getPluginDescription()
getPluginDescription
in interface EncogPluginBase
public final String getPluginName()
getPluginName
in interface EncogPluginBase
public final int getPluginType()
getPluginType
in interface EncogPluginBase
public final void log(int level, String message)
log
in interface EncogPluginLogging1
level
- The logging level.message
- The logging message.public final void log(int level, Throwable t)
log
in interface EncogPluginLogging1
level
- 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
Copyright © 2014. All Rights Reserved.