public class LogParams
extends java.lang.Object
| Constructor and Description |
|---|
LogParams()
LogParams constructor which allows to create LogParams instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
delete() |
java.lang.String |
getLogFileName()
Gets the path to the file to write the log to.
|
java.lang.String |
getLogFormat()
Gets log format string. The string which allows to write the log in a custom format.
|
java.util.EnumSet<LogOutputFlags> |
getLogOutputFlags()
Gets LogOutputFlags.
|
void |
setLogFileName(java.lang.String logFileName)
Sets file name to write the log to.
|
void |
setLogFormat(java.lang.String logFormat)
Sets log format string. The string which allows to write the log in a custom format.
|
void |
setLogOutputFlags(java.util.EnumSet<LogOutputFlags> logOutputFlags)
Sets LogOutputFlags. Allows to specify where to put DLE's log.
|
public LogParams()
public void delete()
public java.util.EnumSet<LogOutputFlags> getLogOutputFlags()
public void setLogOutputFlags(java.util.EnumSet<LogOutputFlags> logOutputFlags)
logOutputFlags - the flags containing outputs to write the log to.public java.lang.String getLogFileName()
public void setLogFileName(java.lang.String logFileName)
logFileName - Path to the file to write the log to.public java.lang.String getLogFormat()
"%d" - current date (mmddyyyy). Example: 07292013 "%t" - current time (hhmmss). Example: 121311 "%s" - error source. Example: "DLFramework" "%e" - error type. It can be debug, info, warning, error, fatal. The value which will be output within this marker depends on severity value. It always outputs "error" string.
"%m" - error message. Example: "Exception: InExistent.pdf: This file cannot be found. Error number: 1074397201" "%T" - full date. It contains current date, current time and the timezone (yyyy-mm-ddThh:mm:ss+/-hh:mm). Example: 2013-07-29T12:13:11+03:00
By default "%T | %s | %e | %m" string format is used.
public void setLogFormat(java.lang.String logFormat)
"%d" - current date (mmddyyyy). Example: 07292013 "%t" - current time (hhmmss). Example: 121311 "%s" - error source. Example: "DLFramework" "%e" - error type. It can be debug, info, warning, error, fatal. The value which will be output within this marker depends on severity value. Currently it always outputs "error" string.
"%m" - error message. Example: "Exception: InExistent.pdf: This file cannot be found. Error number: 1074397201" "%T" - full date. It contains current date, current time and the timezone (yyyy-mm-ddThh:mm:ss+/-hh:mm). Example: 2013-07-29T12:13:11+03:00
By default "%T | %s | %e | %m" string format is used.
logFormat - string Log record format.