Constructor and Description |
---|
ConsoleLogger()
Initializes a new instance of the
ConsoleLogger class. |
ConsoleLogger(int loggingLevel) |
ConsoleLogger(int loggingLevel,
String loggerFilePath) |
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.aspose.ms.System.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.aspose.ms.System.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.aspose.ms.System.IFormatProvider provider,
String format,
Object... args)
Fatals the format.
|
void |
fatalFormat(String format,
Object... args)
Fatals the format.
|
protected void |
finalize()
Dispose with saving log to file
|
void |
info(Object message)
Informations the specified message.
|
void |
info(Object message,
Exception exception)
Informations the specified message.
|
void |
infoFormat(com.aspose.ms.System.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) |
void |
setErrorEnabled(boolean value) |
void |
setFatalEnabled(boolean value) |
void |
setInfoEnabled(boolean value) |
void |
setWarnEnabled(boolean value) |
void |
warn(Object message)
Warns the specified message.
|
void |
warn(Object message,
Exception exception)
Warns the specified message.
|
void |
warnFormat(com.aspose.ms.System.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 loggingLevel)
public ConsoleLogger(int loggingLevel, String loggerFilePath)
public void debug(Object message)
Debugs the specified message.
public void debugFormat(com.aspose.ms.System.IFormatProvider provider, String format, Object... args)
Debugs the format.
debugFormat
in interface ILogger
provider
- The provider.format
- The format.args
- The arguments.public void debugFormat(String format, Object... args)
Debugs the format.
debugFormat
in interface ILogger
format
- The format.args
- The arguments.public void dispose()
Releases unmanaged and - optionally - managed resources.
dispose
in interface com.aspose.ms.System.IDisposable
public void error(Object message)
Errors the specified message.
public void errorFormat(com.aspose.ms.System.IFormatProvider provider, String format, Object... args)
Errors the format.
errorFormat
in interface ILogger
provider
- The provider.format
- The format.args
- The arguments.public void errorFormat(String format, Object... args)
Errors the format.
errorFormat
in interface ILogger
format
- The format.args
- The arguments.public void fatal(Object message)
Fatals the specified message.
public void fatalFormat(com.aspose.ms.System.IFormatProvider provider, String format, Object... args)
Fatals the format.
fatalFormat
in interface ILogger
provider
- The provider.format
- The format.args
- The arguments.public void fatalFormat(String format, Object... args)
Fatals the format.
fatalFormat
in interface ILogger
format
- The format.args
- The arguments.protected void finalize() throws Throwable
Dispose with saving log to file
public void info(Object message)
Informations the specified message.
public void infoFormat(com.aspose.ms.System.IFormatProvider provider, String format, Object... args)
Informations the format.
infoFormat
in interface ILogger
provider
- The provider.format
- The format.args
- The arguments.public void infoFormat(String format, Object... args)
Informations the format.
infoFormat
in interface ILogger
format
- The format.args
- The arguments.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 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 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 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 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 setDebugEnabled(boolean value)
public void setErrorEnabled(boolean value)
public void setFatalEnabled(boolean value)
public void setInfoEnabled(boolean value)
public void setWarnEnabled(boolean value)
public void warn(Object message)
Warns the specified message.
public void warnFormat(com.aspose.ms.System.IFormatProvider provider, String format, Object... args)
Warns the format.
warnFormat
in interface ILogger
provider
- The provider.format
- The format.args
- The arguments.public void warnFormat(String format, Object... args)
Warns the format.
warnFormat
in interface ILogger
format
- The format.args
- The arguments.Copyright © 2019. All rights reserved.