public final class FileLogger extends Object implements com.groupdocs.foundation.logging.ILogger
Represents logger implementation which sends all messages to file.
| 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.ILoggerarguments - 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.ILoggerarguments - 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.ILoggermessage - 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.ILoggermessage - The error messagethrowable - The exceptionarguments - The arguments, replaces {} in message in order of passingpublic boolean isDebugEnabled()
com.groupdocs.foundation.logging.ILoggerisDebugEnabled in interface com.groupdocs.foundation.logging.ILoggerpublic boolean isErrorEnabled()
com.groupdocs.foundation.logging.ILoggerisErrorEnabled in interface com.groupdocs.foundation.logging.ILoggerpublic boolean isTraceEnabled()
com.groupdocs.foundation.logging.ILoggerisTraceEnabled in interface com.groupdocs.foundation.logging.ILoggerpublic boolean isWarningEnabled()
com.groupdocs.foundation.logging.ILoggerisWarningEnabled in interface com.groupdocs.foundation.logging.ILoggerpublic void trace(String message, Object... arguments)
trace in interface com.groupdocs.foundation.logging.ILoggermessage - 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.ILoggerthrowable - 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.ILoggermessage - 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.ILoggerarguments - The arguments, replaces {} in message in order of passingmessage - The warning message.throwable - The exceptionCopyright © 2024. All rights reserved.