java.lang.Object
org.apache.log4j.Category
org.apache.log4j.Logger
ch.ivyteam.log.Logger
All Implemented Interfaces:
ILogger
, org.apache.log4j.spi.AppenderAttachable
public class Logger
extends org.apache.log4j.Logger
implements ILogger
Extends the log4j Logger to expand the Logger's interface.
The main extension is made up by the method log, witch is able
to handle a formated Message(java.text.MessageFormat) and
a variable number of parameters.
Since:
09.02.2006
API:
This is a public API.
Method Summary
All Methods Instance Methods Concrete Methods
void
Formats and logs a message with level DEBUG.
void
Formats and logs a message with level DEBUG.
void
Logs a message with level ERROR.
void
Formats and logs a message with level ERROR.
void
Formats and logs a message with level ERROR.
void
Formats and logs a message with level FATAL.
void
Formats and logs a message with level FATAL.
void
Logs a message with level INFO.
void
Formats(java.text.MessageFormat) and logs a message with level INFO.
void
Formats(java.text.MessageFormat) and logs a message with level INFO
including a throwable.
void
log (org.apache.log4j.Priority _level,
String formatedMessage,
Object ... args)
Formats(java.text.MessageFormat) and logs a message.
void
Formats(java.text.MessageFormat) and logs a message.
void
Logs a message with level WARN.
void
Formats and logs a message with level WARNING.
void
Formats and logs a message with level WARNING.
Method Details
log
public void log (org.apache.log4j.Priority _level,
String formatedMessage,
Object ... args)
Description copied from interface: ILogger
Formats(java.text.MessageFormat) and logs a message. Example:
log("My {0} Message with {1} tokens.", "first", 2); --> log result:
"My first Message with 2 tokens." After formating it calls the log method
of org.apache.log4j.Logger
Specified by:
log
in interface ILogger
Parameters:
_level
- logging level see Priority
formatedMessage
- message including format tokens '{}'
args
- token content
See Also:
API:
This public API is available in IvyScript and Java. It has the visibility ADVANCED.
log
public void log (org.apache.log4j.Priority _level,
String formatedMessage,
Throwable throwable,
Object ... args)
Description copied from interface: ILogger
Formats(java.text.MessageFormat) and logs a message. Including a Throwable
Object.
Specified by:
log
in interface ILogger
Parameters:
_level
- logging level see Priority
formatedMessage
- message including format tokens '{}'
throwable
- e.g. includes the exception
args
- token content
See Also:
API:
This public API is available in IvyScript and Java. It has the visibility ADVANCED.
info
Description copied from interface: ILogger
Formats(java.text.MessageFormat) and logs a message with level INFO.
Specified by:
info
in interface ILogger
Parameters:
formatedMessage
- message including format tokens '{}'
args
- token content
See Also:
API:
This public API is available in IvyScript and Java. It has the visibility NOVICE.
info
Description copied from interface: ILogger
Formats(java.text.MessageFormat) and logs a message with level INFO
including a throwable.
Specified by:
info
in interface ILogger
Parameters:
formatedMessage
- message including format tokens '{}'
throwable
- e.g. includes the exception
args
- token content
See Also:
API:
This public API is available in IvyScript and Java. It has the visibility ADVANCED.
warn
Description copied from interface: ILogger
Formats and logs a message with level WARNING.
Specified by:
warn
in interface ILogger
Parameters:
formatedMessage
- message including format tokens '{}'
args
- token content
See Also:
API:
This public API is available in IvyScript and Java. It has the visibility NOVICE.
warn
Description copied from interface: ILogger
Formats and logs a message with level WARNING.
Specified by:
warn
in interface ILogger
Parameters:
formatedMessage
- message including format tokens '{}'
throwable
- e.g. includes the exception
args
- token content
See Also:
API:
This public API is available in IvyScript and Java. It has the visibility ADVANCED.
error
Description copied from interface: ILogger
Formats and logs a message with level ERROR.
Specified by:
error
in interface ILogger
Parameters:
formatedMessage
- message including format tokens '{}'
args
- token content
See Also:
API:
This public API is available in IvyScript and Java. It has the visibility NOVICE.
error
Description copied from interface: ILogger
Formats and logs a message with level ERROR.
Specified by:
error
in interface ILogger
Parameters:
formatedMessage
- message including format tokens '{}'
throwable
- e.g. includes the exception
args
- token content
See Also:
API:
This public API is available in IvyScript and Java. It has the visibility ADVANCED.
fatal
Description copied from interface: ILogger
Formats and logs a message with level FATAL.
Specified by:
fatal
in interface ILogger
Parameters:
formatedMessage
- message including format tokens '{}'
args
- token content
See Also:
API:
This public API is available in IvyScript and Java. It has the visibility ADVANCED.
fatal
Description copied from interface: ILogger
Formats and logs a message with level FATAL.
Specified by:
fatal
in interface ILogger
Parameters:
formatedMessage
- message including format tokens '{}'
throwable
- e.g. includes the exception
args
- token content
See Also:
API:
This public API is available in IvyScript and Java. It has the visibility ADVANCED.
debug
Description copied from interface: ILogger
Formats and logs a message with level DEBUG.
Specified by:
debug
in interface ILogger
Parameters:
formatedMessage
- message including format tokens '{}'
args
- token content
API:
This public API is available in IvyScript and Java. It has the visibility NOVICE.
debug
Description copied from interface: ILogger
Formats and logs a message with level DEBUG.
Specified by:
debug
in interface ILogger
Parameters:
formatedMessage
- message including format tokens '{}'
throwable
- e.g. includes the exception
args
- token content
API:
This public API is available in IvyScript and Java. It has the visibility ADVANCED.
error
public void error (Object message)
Description copied from interface: ILogger
Logs a message with level ERROR.
Specified by:
error
in interface ILogger
Parameters:
message
- if the message is an Throwable
the stack trace is also logged
See Also:
API:
This public API is available in IvyScript and Java. It has the visibility NOVICE.
warn
public void warn (Object message)
Description copied from interface: ILogger
Logs a message with level WARN.
Specified by:
warn
in interface ILogger
Parameters:
message
- if the message is an Throwable
the stack trace is also logged.
See Also:
API:
This public API is available in IvyScript and Java. It has the visibility NOVICE.
info
public void info (Object message)
Description copied from interface: ILogger
Logs a message with level INFO.
Specified by:
info
in interface ILogger
Parameters:
message
- if the message is an Throwable
the stack trace is also logged.
See Also:
API:
This public API is available in IvyScript and Java. It has the visibility NOVICE.