public abstract class LogEngine extends Object
Abstract LogEngine class.
| Constructor and Description |
|---|
LogEngine(String name)
Constructor for LogEngine.
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
close()
close.
|
abstract void |
debug(Object message)
Log a message with debug log level.
|
abstract void |
debug(Object message,
Throwable t)
Log an error with debug log level.
|
abstract void |
doInitialize(LogFactory logFactory)
doInitialize.
|
abstract void |
error(Object message)
Log a message with error log level.
|
abstract void |
error(Object message,
Throwable t)
Log an error with error log level.
|
abstract void |
fatal(Object message)
Log a message with fatal log level.
|
abstract void |
fatal(Object message,
Throwable t)
Log an error with fatal log level.
|
String |
getName()
Getter for the field
name. |
abstract void |
info(Object message)
Log a message with info log level.
|
abstract void |
info(Object message,
Throwable t)
Log an error with info log level.
|
abstract boolean |
isDebugEnabled()
Is debug logging currently enabled?
|
abstract boolean |
isErrorEnabled()
Is error logging currently enabled?
|
abstract boolean |
isFatalEnabled()
Is fatal logging currently enabled?
|
abstract boolean |
isInfoEnabled()
Is info logging currently enabled?
|
abstract boolean |
isTraceEnabled()
Is trace logging currently enabled?
|
abstract boolean |
isWarnEnabled()
Is warn logging currently enabled?
|
abstract void |
trace(Object message)
Log a message with trace log level.
|
abstract void |
trace(Object message,
Throwable t)
Log an error with trace log level.
|
abstract void |
warn(Object message)
Log a message with warn log level.
|
abstract void |
warn(Object message,
Throwable t)
Log an error with warn log level.
|
public abstract boolean isDebugEnabled()
Is debug logging currently enabled?
Call this method to prevent having to perform expensive operations
(for example, String concatenation)
when the log level is more than debug.
public abstract boolean isErrorEnabled()
Is error logging currently enabled?
Call this method to prevent having to perform expensive operations
(for example, String concatenation)
when the log level is more than error.
public abstract boolean isFatalEnabled()
Is fatal logging currently enabled?
Call this method to prevent having to perform expensive operations
(for example, String concatenation)
when the log level is more than fatal.
public abstract boolean isInfoEnabled()
Is info logging currently enabled?
Call this method to prevent having to perform expensive operations
(for example, String concatenation)
when the log level is more than info.
public abstract boolean isTraceEnabled()
Is trace logging currently enabled?
Call this method to prevent having to perform expensive operations
(for example, String concatenation)
when the log level is more than trace.
public abstract boolean isWarnEnabled()
Is warn logging currently enabled?
Call this method to prevent having to perform expensive operations
(for example, String concatenation)
when the log level is more than warn.
public abstract void trace(Object message)
Log a message with trace log level.
message - log this messagepublic abstract void trace(Object message, Throwable t)
Log an error with trace log level.
message - log this messaget - log this causepublic abstract void debug(Object message)
Log a message with debug log level.
message - log this messagepublic abstract void debug(Object message, Throwable t)
Log an error with debug log level.
message - log this messaget - log this causepublic abstract void info(Object message)
Log a message with info log level.
message - log this messagepublic abstract void info(Object message, Throwable t)
Log an error with info log level.
message - log this messaget - log this causepublic abstract void warn(Object message)
Log a message with warn log level.
message - log this messagepublic abstract void warn(Object message, Throwable t)
Log an error with warn log level.
message - log this messaget - log this causepublic abstract void error(Object message)
Log a message with error log level.
message - log this messagepublic abstract void error(Object message, Throwable t)
Log an error with error log level.
message - log this messaget - log this causepublic abstract void fatal(Object message)
Log a message with fatal log level.
message - log this messagepublic abstract void fatal(Object message, Throwable t)
Log an error with fatal log level.
message - log this messaget - log this causepublic abstract void doInitialize(LogFactory logFactory)
doInitialize.
logFactory - a LogFactory object.public abstract void close()
close.
Copyright © 2016. All Rights Reserved.