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
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 Modifier and Type Method Description voiddebug(String formatedMessage, Object... args)Formats and logs a message with level DEBUG.voiddebug(String formatedMessage, Throwable throwable, Object... args)Formats and logs a message with level DEBUG.voiderror(Object message)Logs a message with level ERROR.voiderror(String formatedMessage, Object... args)Formats and logs a message with level ERROR.voiderror(String formatedMessage, Throwable throwable, Object... args)Formats and logs a message with level ERROR.voidfatal(String formatedMessage, Object... args)Formats and logs a message with level FATAL.voidfatal(String formatedMessage, Throwable throwable, Object... args)Formats and logs a message with level FATAL.voidinfo(Object message)Logs a message with level INFO.voidinfo(String formatedMessage, Object... args)Formats(java.text.MessageFormat) and logs a message with level INFO.voidinfo(String formatedMessage, Throwable throwable, Object... args)Formats(java.text.MessageFormat) and logs a message with level INFO including a throwable.voidlog(org.apache.log4j.Priority _level, String formatedMessage, Object... args)Formats(java.text.MessageFormat) and logs a message.voidlog(org.apache.log4j.Priority _level, String formatedMessage, Throwable throwable, Object... args)Formats(java.text.MessageFormat) and logs a message.voidwarn(Object message)Logs a message with level WARN.voidwarn(String formatedMessage, Object... args)Formats and logs a message with level WARNING.voidwarn(String formatedMessage, Throwable throwable, Object... args)Formats and logs a message with level WARNING.
-
-
-
Method Detail
-
log
public void log(org.apache.log4j.Priority _level, String formatedMessage, Object... args)Description copied from interface:ILoggerFormats(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:
login interfaceILogger- Parameters:
_level- logging level seePriorityformatedMessage- message including format tokens '{}'args- token content- See Also:
ILogger.log(org.apache.log4j.Priority, String, Object...)- 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:ILoggerFormats(java.text.MessageFormat) and logs a message. Including a Throwable Object.- Specified by:
login interfaceILogger- Parameters:
_level- logging level seePriorityformatedMessage- message including format tokens '{}'throwable- e.g. includes the exceptionargs- token content- See Also:
ILogger.log(org.apache.log4j.Priority, String, Throwable, Object...)- API:
- This public API is available in IvyScript and Java. It has the visibility ADVANCED.
-
info
public void info(String formatedMessage, Object... args)
Description copied from interface:ILoggerFormats(java.text.MessageFormat) and logs a message with level INFO.- Specified by:
infoin interfaceILogger- Parameters:
formatedMessage- message including format tokens '{}'args- token content- See Also:
ILogger.info(String, Object...)- API:
- This public API is available in IvyScript and Java. It has the visibility NOVICE.
-
info
public void info(String formatedMessage, Throwable throwable, Object... args)
Description copied from interface:ILoggerFormats(java.text.MessageFormat) and logs a message with level INFO including a throwable.- Specified by:
infoin interfaceILogger- Parameters:
formatedMessage- message including format tokens '{}'throwable- e.g. includes the exceptionargs- token content- See Also:
ILogger.info(String, Throwable, Object...)- API:
- This public API is available in IvyScript and Java. It has the visibility ADVANCED.
-
warn
public void warn(String formatedMessage, Object... args)
Description copied from interface:ILoggerFormats and logs a message with level WARNING.- Specified by:
warnin interfaceILogger- Parameters:
formatedMessage- message including format tokens '{}'args- token content- See Also:
ILogger.warn(String, Object...)- API:
- This public API is available in IvyScript and Java. It has the visibility NOVICE.
-
warn
public void warn(String formatedMessage, Throwable throwable, Object... args)
Description copied from interface:ILoggerFormats and logs a message with level WARNING.- Specified by:
warnin interfaceILogger- Parameters:
formatedMessage- message including format tokens '{}'throwable- e.g. includes the exceptionargs- token content- See Also:
ILogger.warn(String, Throwable, Object...)- API:
- This public API is available in IvyScript and Java. It has the visibility ADVANCED.
-
error
public void error(String formatedMessage, Object... args)
Description copied from interface:ILoggerFormats and logs a message with level ERROR.- Specified by:
errorin interfaceILogger- Parameters:
formatedMessage- message including format tokens '{}'args- token content- See Also:
ILogger.error(String, Object...)- API:
- This public API is available in IvyScript and Java. It has the visibility NOVICE.
-
error
public void error(String formatedMessage, Throwable throwable, Object... args)
Description copied from interface:ILoggerFormats and logs a message with level ERROR.- Specified by:
errorin interfaceILogger- Parameters:
formatedMessage- message including format tokens '{}'throwable- e.g. includes the exceptionargs- token content- See Also:
ILogger.error(String, Throwable, Object...)- API:
- This public API is available in IvyScript and Java. It has the visibility ADVANCED.
-
fatal
public void fatal(String formatedMessage, Object... args)
Description copied from interface:ILoggerFormats and logs a message with level FATAL.- Specified by:
fatalin interfaceILogger- Parameters:
formatedMessage- message including format tokens '{}'args- token content- See Also:
ILogger.fatal(String, Object...)- API:
- This public API is available in IvyScript and Java. It has the visibility ADVANCED.
-
fatal
public void fatal(String formatedMessage, Throwable throwable, Object... args)
Description copied from interface:ILoggerFormats and logs a message with level FATAL.- Specified by:
fatalin interfaceILogger- Parameters:
formatedMessage- message including format tokens '{}'throwable- e.g. includes the exceptionargs- token content- See Also:
ILogger.fatal(String, Throwable, Object...)- API:
- This public API is available in IvyScript and Java. It has the visibility ADVANCED.
-
debug
public void debug(String formatedMessage, Object... args)
Description copied from interface:ILoggerFormats and logs a message with level DEBUG.
-
debug
public void debug(String formatedMessage, Throwable throwable, Object... args)
Description copied from interface:ILoggerFormats and logs a message with level DEBUG.
-
error
public void error(Object message)
Description copied from interface:ILoggerLogs a message with level ERROR.- Specified by:
errorin interfaceILogger- Parameters:
message- if the message is anThrowablethe stack trace is also logged- See Also:
ILogger.error(Object)- 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:ILoggerLogs a message with level WARN.- Specified by:
warnin interfaceILogger- Parameters:
message- if the message is anThrowablethe stack trace is also logged.- See Also:
ILogger.warn(Object)- 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:ILoggerLogs a message with level INFO.- Specified by:
infoin interfaceILogger- Parameters:
message- if the message is anThrowablethe stack trace is also logged.- See Also:
ILogger.info(Object)- API:
- This public API is available in IvyScript and Java. It has the visibility NOVICE.
-
-