|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.encog.plugin.system.SystemLoggingPlugin
public class SystemLoggingPlugin
This is the built-in logging plugin for Encog. This plugin provides simple file and console logging.
Field Summary |
---|
Fields inherited from interface org.encog.plugin.EncogPluginBase |
---|
TYPE_LOGGING, TYPE_SERVICE |
Constructor Summary | |
---|---|
SystemLoggingPlugin()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SystemLoggingPlugin()
Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |