public class LogConfiguration
extends java.lang.Object
implements java.io.Serializable, weka.core.OptionHandler
Modifier and Type | Class and Description |
---|---|
static class |
LogConfiguration.LogLevel
Available log levels.
|
Constructor and Description |
---|
LogConfiguration() |
Modifier and Type | Method and Description |
---|---|
void |
apply()
Apply the logging configuration.
|
LogConfiguration.LogLevel |
getDl4jLogLevel()
Get the Dl4j log level.
|
java.io.File |
getLogFile()
Get the log file
|
LogConfiguration.LogLevel |
getNd4jLogLevel()
Get the Nd4j log level.
|
java.lang.String[] |
getOptions()
Gets the current settings of the log configuration
|
LogConfiguration.LogLevel |
getWekaDl4jLogLevel()
Get the WekaDeeplearning4j log level.
|
boolean |
isAppend() |
java.util.Enumeration<weka.core.Option> |
listOptions()
Returns an enumeration describing the available options.
|
void |
setAppend(boolean append)
Whether to append to the existing log file or not.
|
void |
setDl4jLogLevel(LogConfiguration.LogLevel dl4jLogLevel)
Set the Dl4j log level.
|
void |
setLogFile(java.io.File logFile)
Set the log file
|
void |
setNd4jLogLevel(LogConfiguration.LogLevel nd4jLogLevel)
Set the Nd4j log level.
|
void |
setOptions(java.lang.String[] options)
Parses a given list of options.
|
void |
setWekaDl4jLogLevel(LogConfiguration.LogLevel wekaDl4jLogLevel)
Set the WekaDeeplearning4j log level.
|
public java.io.File getLogFile()
@FilePropertyMetadata(fileChooserDialogType=1, directoriesOnly=false) @OptionMetadata(displayName="log file", description="The name of the log file to write loss information to (default = $WEKA_HOME/wekaDeeplearning4j.log).", commandLineParamName="logFile", commandLineParamSynopsis="-logFile <string>", displayOrder=1) public void setLogFile(java.io.File logFile)
logFile
- the log filepublic boolean isAppend()
@FilePropertyMetadata(fileChooserDialogType=1, directoriesOnly=false) @OptionMetadata(displayName="append", description="Whether to append new logs to the log file (if it exists).", commandLineParamName="append", commandLineParamSynopsis="-append", displayOrder=4) public void setAppend(boolean append)
append
- Append to the existing log file or notpublic LogConfiguration.LogLevel getNd4jLogLevel()
@OptionMetadata(displayName="nd4j log level", description="The log level for Nd4j.", commandLineParamName="nd4jLogLevel", commandLineParamSynopsis="-nd4jLogLevel <LogLevel>", displayOrder=3) public void setNd4jLogLevel(LogConfiguration.LogLevel nd4jLogLevel)
nd4jLogLevel
- The nd4j log levelpublic LogConfiguration.LogLevel getDl4jLogLevel()
@OptionMetadata(displayName="dl4j log level", description="The log level for Dl4j.", commandLineParamName="dl4jLogLevel", commandLineParamSynopsis="-dl4jLogLevel <LogLevel>", displayOrder=2) public void setDl4jLogLevel(LogConfiguration.LogLevel dl4jLogLevel)
dl4jLogLevel
- The nd4j log levelpublic LogConfiguration.LogLevel getWekaDl4jLogLevel()
@OptionMetadata(displayName="wekaDl4j log level", description="The log level for WekaDeeplearning4j.", commandLineParamName="wekaDl4jLogLevel", commandLineParamSynopsis="-wekaDl4jLogLevel <LogLevel>", displayOrder=1) public void setWekaDl4jLogLevel(LogConfiguration.LogLevel wekaDl4jLogLevel)
wekaDl4jLogLevel
- The nd4j log levelpublic void apply()
public java.util.Enumeration<weka.core.Option> listOptions()
listOptions
in interface weka.core.OptionHandler
public java.lang.String[] getOptions()
getOptions
in interface weka.core.OptionHandler
public void setOptions(java.lang.String[] options) throws java.lang.Exception
setOptions
in interface weka.core.OptionHandler
options
- the list of options as an array of stringsjava.lang.Exception
- if an option is not supported