Constructor and Description |
---|
ConsoleLogger()
Initializes a new instance of the
ConsoleLogger class. |
ConsoleLogger(int loggerLevel,
String loggerFilePath)
Initializes a new instance of the
ConsoleLogger class. |
Modifier and Type | Method and Description |
---|---|
void |
debug(Object message)
Debugs the specified message.
|
void |
debug(Object message,
Exception exception)
Debugs the specified message.
|
void |
debugFormat(com.groupdocs.foundation.utils.IFormatProvider provider,
String format,
Object... args)
Debugs the format.
|
void |
debugFormat(String format,
Object... args)
Debugs the format.
|
void |
dispose()
Releases unmanaged and - optionally - managed resources.
|
void |
error(Object message)
Errors the specified message.
|
void |
error(Object message,
Exception exception)
Errors the specified message.
|
void |
errorFormat(com.groupdocs.foundation.utils.IFormatProvider provider,
String format,
Object... args)
Errors the format.
|
void |
errorFormat(String format,
Object... args)
Errors the format.
|
void |
fatal(Object message)
Fatals the specified message.
|
void |
fatal(Object message,
Exception exception)
Fatals the specified message.
|
void |
fatalFormat(com.groupdocs.foundation.utils.IFormatProvider provider,
String format,
Object... args)
Fatals the format.
|
void |
fatalFormat(String format,
Object... args)
Fatals the format.
|
void |
info(Object message)
Informations the specified message.
|
void |
info(Object message,
Exception exception)
Informations the specified message.
|
void |
infoFormat(com.groupdocs.foundation.utils.IFormatProvider provider,
String format,
Object... args)
Informations the format.
|
void |
infoFormat(String format,
Object... args)
Informations the format.
|
boolean |
isDebugEnabled()
Gets or sets a value indicating whether this instance is debug enabled.
|
boolean |
isErrorEnabled()
Gets or sets a value indicating whether this instance is error enabled.
|
boolean |
isFatalEnabled()
Gets or sets a value indicating whether this instance is fatal enabled.
|
boolean |
isInfoEnabled()
Gets or sets a value indicating whether this instance is information enabled.
|
boolean |
isWarnEnabled()
Gets or sets a value indicating whether this instance is warn enabled.
|
void |
setDebugEnabled(boolean value)
Gets or sets a value indicating whether this instance is debug enabled.
|
void |
setErrorEnabled(boolean value)
Gets or sets a value indicating whether this instance is error enabled.
|
void |
setFatalEnabled(boolean value)
Gets or sets a value indicating whether this instance is fatal enabled.
|
void |
setInfoEnabled(boolean value)
Gets or sets a value indicating whether this instance is information enabled.
|
void |
setWarnEnabled(boolean value)
Gets or sets a value indicating whether this instance is warn enabled.
|
void |
warn(Object message)
Warns the specified message.
|
void |
warn(Object message,
Exception exception)
Warns the specified message.
|
void |
warnFormat(com.groupdocs.foundation.utils.IFormatProvider provider,
String format,
Object... args)
Warns the format.
|
void |
warnFormat(String format,
Object... args)
Warns the format.
|
public ConsoleLogger()
Initializes a new instance of the ConsoleLogger
class.
public ConsoleLogger(int loggerLevel, String loggerFilePath)
Initializes a new instance of the ConsoleLogger
class.
loggerLevel
- The logger level.loggerFilePath
- The logger file path.public boolean isDebugEnabled()
Gets or sets a value indicating whether this instance is debug enabled.
Value:true
if this instance is debug enabled; otherwise, false
.isDebugEnabled
in interface ILogger
public void setDebugEnabled(boolean value)
Gets or sets a value indicating whether this instance is debug enabled.
Value:true
if this instance is debug enabled; otherwise, false
.value
- the valuepublic boolean isInfoEnabled()
Gets or sets a value indicating whether this instance is information enabled.
Value:true
if this instance is information enabled; otherwise, false
.isInfoEnabled
in interface ILogger
public void setInfoEnabled(boolean value)
Gets or sets a value indicating whether this instance is information enabled.
Value:true
if this instance is information enabled; otherwise, false
.value
- the valuepublic boolean isWarnEnabled()
Gets or sets a value indicating whether this instance is warn enabled.
Value:true
if this instance is warn enabled; otherwise, false
.isWarnEnabled
in interface ILogger
public void setWarnEnabled(boolean value)
Gets or sets a value indicating whether this instance is warn enabled.
Value:true
if this instance is warn enabled; otherwise, false
.value
- the valuepublic boolean isErrorEnabled()
Gets or sets a value indicating whether this instance is error enabled.
Value:true
if this instance is error enabled; otherwise, false
.isErrorEnabled
in interface ILogger
public void setErrorEnabled(boolean value)
Gets or sets a value indicating whether this instance is error enabled.
Value:true
if this instance is error enabled; otherwise, false
.value
- the valuepublic boolean isFatalEnabled()
Gets or sets a value indicating whether this instance is fatal enabled.
Value:true
if this instance is fatal enabled; otherwise, false
.isFatalEnabled
in interface ILogger
public void setFatalEnabled(boolean value)
Gets or sets a value indicating whether this instance is fatal enabled.
Value:true
if this instance is fatal enabled; otherwise, false
.value
- the valuepublic void dispose()
Releases unmanaged and - optionally - managed resources.
dispose
in interface com.aspose.ms.System.IDisposable
public void debug(Object message)
Debugs the specified message.
public void debugFormat(String format, Object... args)
Debugs the format.
debugFormat
in interface ILogger
format
- The format.args
- The arguments.public void debugFormat(com.groupdocs.foundation.utils.IFormatProvider provider, String format, Object... args)
Debugs the format.
debugFormat
in interface ILogger
provider
- The provider.format
- The format.args
- The arguments.public void info(Object message)
Informations the specified message.
public void infoFormat(String format, Object... args)
Informations the format.
infoFormat
in interface ILogger
format
- The format.args
- The arguments.public void infoFormat(com.groupdocs.foundation.utils.IFormatProvider provider, String format, Object... args)
Informations the format.
infoFormat
in interface ILogger
provider
- The provider.format
- The format.args
- The arguments.public void warn(Object message)
Warns the specified message.
public void warnFormat(String format, Object... args)
Warns the format.
warnFormat
in interface ILogger
format
- The format.args
- The arguments.public void warnFormat(com.groupdocs.foundation.utils.IFormatProvider provider, String format, Object... args)
Warns the format.
warnFormat
in interface ILogger
provider
- The provider.format
- The format.args
- The arguments.public void error(Object message)
Errors the specified message.
public void errorFormat(String format, Object... args)
Errors the format.
errorFormat
in interface ILogger
format
- The format.args
- The arguments.public void errorFormat(com.groupdocs.foundation.utils.IFormatProvider provider, String format, Object... args)
Errors the format.
errorFormat
in interface ILogger
provider
- The provider.format
- The format.args
- The arguments.public void fatal(Object message)
Fatals the specified message.
public void fatalFormat(String format, Object... args)
Fatals the format.
fatalFormat
in interface ILogger
format
- The format.args
- The arguments.public void fatalFormat(com.groupdocs.foundation.utils.IFormatProvider provider, String format, Object... args)
Fatals the format.
fatalFormat
in interface ILogger
provider
- The provider.format
- The format.args
- The arguments.Copyright © 2018. All rights reserved.