public class FileLogger extends Object implements com.groupdocs.foundation.logging.ILogger
Constructor and Description |
---|
FileLogger(String fileName)
Create logger to file.
|
FileLogger(String fileName,
boolean isTraceEnabled,
boolean isDebugEnabled,
boolean isWarningEnabled,
boolean isErrorEnabled)
Create logger to file.
|
Modifier and Type | Method and Description |
---|---|
void |
debug(String message,
Object... arguments)
Writes a debug message to the console.
|
void |
debug(Throwable throwable,
String message,
Object... arguments)
Writes a debug message to the console.
|
void |
error(String message,
Object... arguments)
Writes an error message to the console.
|
void |
error(Throwable throwable,
String message,
Object... arguments)
Writes an error message to the console.
|
boolean |
isDebugEnabled()
Checks is debug logging enabled
|
boolean |
isErrorEnabled()
Checks is error logging enabled
|
boolean |
isTraceEnabled()
Checks is trace logging enabled
|
boolean |
isWarningEnabled()
Checks is warning logging enabled
|
void |
trace(String message,
Object... arguments)
Writes a trace message to the console.
|
void |
trace(Throwable throwable,
String message,
Object... arguments)
Writes a trace message to the console.
|
void |
warning(String message,
Object... arguments)
Writes a warning message to the console.
|
void |
warning(Throwable throwable,
String message,
Object... arguments)
Writes a warning message to the console.
|
public FileLogger(String fileName)
fileName
- Full file name with pathpublic FileLogger(String fileName, boolean isTraceEnabled, boolean isDebugEnabled, boolean isWarningEnabled, boolean isErrorEnabled)
public void debug(String message, Object... arguments)
debug
in interface com.groupdocs.foundation.logging.ILogger
arguments
- The arguments, replaces {} in message in order of passingmessage
- The debug message.public void debug(Throwable throwable, String message, Object... arguments)
debug
in interface com.groupdocs.foundation.logging.ILogger
arguments
- The arguments, replaces {} in message in order of passingmessage
- The debug message.throwable
- The exceptionpublic void error(String message, Object... arguments)
error
in interface com.groupdocs.foundation.logging.ILogger
message
- The error messagearguments
- The arguments, replaces {} in message in order of passingpublic void error(Throwable throwable, String message, Object... arguments)
error
in interface com.groupdocs.foundation.logging.ILogger
message
- The error messagethrowable
- The exceptionarguments
- The arguments, replaces {} in message in order of passingpublic boolean isDebugEnabled()
com.groupdocs.foundation.logging.ILogger
isDebugEnabled
in interface com.groupdocs.foundation.logging.ILogger
public boolean isErrorEnabled()
com.groupdocs.foundation.logging.ILogger
isErrorEnabled
in interface com.groupdocs.foundation.logging.ILogger
public boolean isTraceEnabled()
com.groupdocs.foundation.logging.ILogger
isTraceEnabled
in interface com.groupdocs.foundation.logging.ILogger
public boolean isWarningEnabled()
com.groupdocs.foundation.logging.ILogger
isWarningEnabled
in interface com.groupdocs.foundation.logging.ILogger
public void trace(String message, Object... arguments)
trace
in interface com.groupdocs.foundation.logging.ILogger
message
- The trace message.arguments
- The arguments, replaces {} in message in order of passingpublic void trace(Throwable throwable, String message, Object... arguments)
trace
in interface com.groupdocs.foundation.logging.ILogger
throwable
- The exceptionmessage
- The trace message.arguments
- The arguments, replaces {} in message in order of passingpublic void warning(String message, Object... arguments)
warning
in interface com.groupdocs.foundation.logging.ILogger
message
- The warning message.arguments
- The arguments, replaces {} in message in order of passingpublic void warning(Throwable throwable, String message, Object... arguments)
warning
in interface com.groupdocs.foundation.logging.ILogger
arguments
- The arguments, replaces {} in message in order of passingmessage
- The warning message.throwable
- The exception