gg.pistol.lumberjack
Interface JackLogger

All Superinterfaces:
Logger

public interface JackLogger
extends Logger

Extension of Logger that enables the use of varargs for logging methods.

Example usage:

 JackLogger logger = JackLoggerFactory.getLogger(LoggerFactory.getLogger(Weather.class));
 logger.info("Hello {}! The current time is {}:{}:{}, and after {} hours the weather will be {}.", "Jack", 13, 30, 0, 5, "sunny");
 

Author:
Bogdan Pistol

Field Summary
 
Fields inherited from interface org.slf4j.Logger
ROOT_LOGGER_NAME
 
Method Summary
 void debug(String format, Object arg1, Object arg2, Object... otherArgs)
          Log a message at the DEBUG level according to the specified format and arguments.
 void error(String format, Object arg1, Object arg2, Object... otherArgs)
          Log a message at the ERROR level according to the specified format and arguments.
 void info(String format, Object arg1, Object arg2, Object... otherArgs)
          Log a message at the INFO level according to the specified format and arguments.
 void trace(String format, Object arg1, Object arg2, Object... otherArgs)
          Log a message at the TRACE level according to the specified format and arguments.
 void warn(String format, Object arg1, Object arg2, Object... otherArgs)
          Log a message at the WARN level according to the specified format and arguments.
 
Methods inherited from interface org.slf4j.Logger
debug, debug, debug, debug, debug, debug, debug, debug, debug, debug, error, error, error, error, error, error, error, error, error, error, getName, info, info, info, info, info, info, info, info, info, info, isDebugEnabled, isDebugEnabled, isErrorEnabled, isErrorEnabled, isInfoEnabled, isInfoEnabled, isTraceEnabled, isTraceEnabled, isWarnEnabled, isWarnEnabled, trace, trace, trace, trace, trace, trace, trace, trace, trace, trace, warn, warn, warn, warn, warn, warn, warn, warn, warn, warn
 

Method Detail

trace

void trace(String format,
           Object arg1,
           Object arg2,
           Object... otherArgs)
Log a message at the TRACE level according to the specified format and arguments.

Parameters:
format - the way to set out the arguments
arg1 - the first of the argument series
arg2 - the seconds of the argument series
otherArgs - the rest of the argument series

debug

void debug(String format,
           Object arg1,
           Object arg2,
           Object... otherArgs)
Log a message at the DEBUG level according to the specified format and arguments.

Parameters:
format - the way to set out the arguments
arg1 - the first of the argument series
arg2 - the seconds of the argument series
otherArgs - the rest of the argument series

info

void info(String format,
          Object arg1,
          Object arg2,
          Object... otherArgs)
Log a message at the INFO level according to the specified format and arguments.

Parameters:
format - the way to set out the arguments
arg1 - the first of the argument series
arg2 - the seconds of the argument series
otherArgs - the rest of the argument series

warn

void warn(String format,
          Object arg1,
          Object arg2,
          Object... otherArgs)
Log a message at the WARN level according to the specified format and arguments.

Parameters:
format - the way to set out the arguments
arg1 - the first of the argument series
arg2 - the seconds of the argument series
otherArgs - the rest of the argument series

error

void error(String format,
           Object arg1,
           Object arg2,
           Object... otherArgs)
Log a message at the ERROR level according to the specified format and arguments.

Parameters:
format - the way to set out the arguments
arg1 - the first of the argument series
arg2 - the seconds of the argument series
otherArgs - the rest of the argument series


Copyright © 2012. All Rights Reserved.