Package ch.ivyteam.log
Class Logger
java.lang.Object
org.apache.log4j.Category
org.apache.log4j.Logger
ch.ivyteam.log.Logger
- All Implemented Interfaces:
ILogger
,org.apache.log4j.spi.AppenderAttachable
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
Modifier and TypeMethodDescriptionvoid
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
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
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 -
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. -
info
Description copied from interface:ILogger
Formats(java.text.MessageFormat) and logs a message with level INFO. -
info
Description copied from interface:ILogger
Formats(java.text.MessageFormat) and logs a message with level INFO including a throwable. -
warn
Description copied from interface:ILogger
Formats and logs a message with level WARNING. -
warn
Description copied from interface:ILogger
Formats and logs a message with level WARNING. -
error
Description copied from interface:ILogger
Formats and logs a message with level ERROR. -
error
Description copied from interface:ILogger
Formats and logs a message with level ERROR. -
fatal
Description copied from interface:ILogger
Formats and logs a message with level FATAL. -
fatal
Description copied from interface:ILogger
Formats and logs a message with level FATAL. -
debug
Description copied from interface:ILogger
Formats and logs a message with level DEBUG. -
debug
Description copied from interface:ILogger
Formats and logs a message with level DEBUG. -
error
Description copied from interface:ILogger
Logs a message with level ERROR. -
warn
Description copied from interface:ILogger
Logs a message with level WARN. -
info
Description copied from interface:ILogger
Logs a message with level INFO.
-