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.
|
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() |
boolean |
isErrorEnabled() |
boolean |
isFatalEnabled() |
boolean |
isInfoEnabled() |
boolean |
isWarnEnabled() |
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 boolean isDebugEnabled()
isDebugEnabled
in interface ILogger
public void setDebugEnabled(boolean value)
public boolean isInfoEnabled()
isInfoEnabled
in interface ILogger
public void setInfoEnabled(boolean value)
public boolean isWarnEnabled()
isWarnEnabled
in interface ILogger
public void setWarnEnabled(boolean value)
public boolean isErrorEnabled()
isErrorEnabled
in interface ILogger
public void setErrorEnabled(boolean value)
public boolean isFatalEnabled()
isFatalEnabled
in interface ILogger
public void setFatalEnabled(boolean value)
public 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.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 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.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 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.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 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.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 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.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.Copyright © 2018. All rights reserved.