public class GridSlf4jLogger
extends org.gridgain.grid.util.lang.GridMetadataAwareAdapter
implements org.gridgain.grid.logger.GridLogger
Here is an example of configuring SLF4J logger in GridGain configuration Spring file:
<property name="gridLogger">
<bean class="org.gridgain.grid.logger.slf4j.GridSlf4jLogger"/>
</property>
It's recommended to use GridGain's logger injection instead of using/instantiating
logger in your task/job code. See GridLoggerResource annotation about logger
injection.
| Constructor and Description |
|---|
GridSlf4jLogger()
Creates new logger.
|
GridSlf4jLogger(org.slf4j.Logger impl)
Creates new logger with given implementation.
|
| Modifier and Type | Method and Description |
|---|---|
void |
debug(String msg) |
void |
error(String msg) |
void |
error(String msg,
Throwable e) |
String |
fileName() |
GridSlf4jLogger |
getLogger(Object ctgr) |
void |
info(String msg) |
boolean |
isDebugEnabled() |
boolean |
isInfoEnabled() |
boolean |
isQuiet() |
boolean |
isTraceEnabled() |
void |
trace(String msg) |
void |
warning(String msg) |
void |
warning(String msg,
Throwable e) |
public GridSlf4jLogger()
public GridSlf4jLogger(org.slf4j.Logger impl)
impl - SLF4J implementation to use.public GridSlf4jLogger getLogger(Object ctgr)
getLogger in interface org.gridgain.grid.logger.GridLoggerpublic void trace(String msg)
trace in interface org.gridgain.grid.logger.GridLoggerpublic void debug(String msg)
debug in interface org.gridgain.grid.logger.GridLoggerpublic void info(String msg)
info in interface org.gridgain.grid.logger.GridLoggerpublic void warning(String msg)
warning in interface org.gridgain.grid.logger.GridLoggerpublic void warning(String msg, @Nullable Throwable e)
warning in interface org.gridgain.grid.logger.GridLoggerpublic void error(String msg)
error in interface org.gridgain.grid.logger.GridLoggerpublic void error(String msg, @Nullable Throwable e)
error in interface org.gridgain.grid.logger.GridLoggerpublic boolean isTraceEnabled()
isTraceEnabled in interface org.gridgain.grid.logger.GridLoggerpublic boolean isInfoEnabled()
isInfoEnabled in interface org.gridgain.grid.logger.GridLoggerpublic boolean isDebugEnabled()
isDebugEnabled in interface org.gridgain.grid.logger.GridLoggerpublic boolean isQuiet()
isQuiet in interface org.gridgain.grid.logger.GridLogger@Nullable public String fileName()
fileName in interface org.gridgain.grid.logger.GridLogger
GridGain Fabric : ver. 6.6.9 Release Date : February 18 2016