Package org.craftercms.studio.api.v1.log
Class ConsoleLoggerImpl
- java.lang.Object
-
- org.craftercms.studio.api.v1.log.AbstractLogger
-
- org.craftercms.studio.api.v1.log.ConsoleLoggerImpl
-
- All Implemented Interfaces:
Logger
public class ConsoleLoggerImpl extends AbstractLogger
Logger object, log4j implementation- Author:
- russdanner
-
-
Field Summary
-
Fields inherited from interface org.craftercms.studio.api.v1.log.Logger
LEVEL_DEBUG, LEVEL_ERROR, LEVEL_FATAL, LEVEL_INFO, LEVEL_OFF, LEVEL_TRACE, LEVEL_WARN
-
-
Constructor Summary
Constructors Constructor Description ConsoleLoggerImpl()
package scope constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
debug(String msg, Object... args)
log debug messagevoid
debug(String msg, Throwable t, Object... args)
log debug messagevoid
error(String msg, Exception err, Object... args)
log error messagevoid
error(String msg, Object... args)
log error messageString
getLevel()
return the level for the loggerString
getName()
return the name for the loggervoid
info(String msg, Object... args)
log info messageboolean
isDebugEnabled()
Check if debug level is enabledvoid
warn(String msg, Object... args)
log warn message-
Methods inherited from class org.craftercms.studio.api.v1.log.AbstractLogger
expandMessage
-
-
-
-
Method Detail
-
getName
public String getName()
return the name for the logger
-
getLevel
public String getLevel()
return the level for the logger
-
debug
public void debug(String msg, Object... args)
log debug message- Parameters:
msg
- the message or message format to logargs
- argument for the log
-
debug
public void debug(String msg, Throwable t, Object... args)
log debug message- Parameters:
msg
- the message or message format to logt
- the error to includeargs
- argument for the log
-
warn
public void warn(String msg, Object... args)
log warn message- Parameters:
msg
- the message or message format to logargs
- argument for the log
-
info
public void info(String msg, Object... args)
log info message- Parameters:
msg
- the message or message format to logargs
- argument for the log
-
error
public void error(String msg, Object... args)
log error message- Parameters:
msg
- the message or message format to logargs
- argument for the log
-
error
public void error(String msg, Exception err, Object... args)
log error message- Parameters:
msg
- the message or message format to logerr
- with errorargs
- argument for the log
-
isDebugEnabled
public boolean isDebugEnabled()
Description copied from interface:Logger
Check if debug level is enabled- Returns:
- true if debug is enabled otherwise false
-
-