public class Slf4jLogger extends Object implements IgniteLogger
Here is an example of configuring SLF4J logger in Ignite configuration Spring file:
<property name="gridLogger">
<bean class="org.apache.ignite.logger.slf4j.Slf4jLogger"/>
</property>
It's recommended to use Ignite's logger injection instead of using/instantiating
logger in your task/job code. See LoggerResource annotation about logger
injection.
DEV_ONLY| Constructor and Description |
|---|
Slf4jLogger()
Creates new logger.
|
Slf4jLogger(org.slf4j.Logger impl)
Creates new logger with given implementation.
|
| Modifier and Type | Method and Description |
|---|---|
void |
debug(String msg) |
void |
debug(@Nullable String marker,
String msg) |
void |
error(@Nullable String marker,
String msg,
@Nullable Throwable e) |
void |
error(String msg,
@Nullable Throwable e) |
@Nullable String |
fileName() |
Slf4jLogger |
getLogger(Object ctgr) |
void |
info(String msg) |
void |
info(@Nullable String marker,
String msg) |
boolean |
isDebugEnabled() |
boolean |
isInfoEnabled() |
boolean |
isQuiet() |
boolean |
isTraceEnabled() |
String |
toString() |
void |
trace(String msg) |
void |
trace(@Nullable String marker,
String msg) |
void |
warning(@Nullable String marker,
String msg,
@Nullable Throwable e) |
void |
warning(String msg,
@Nullable Throwable e) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waiterror, warningpublic Slf4jLogger()
public Slf4jLogger(org.slf4j.Logger impl)
impl - SLF4J implementation to use.public Slf4jLogger getLogger(Object ctgr)
getLogger in interface IgniteLoggerpublic void trace(String msg)
trace in interface IgniteLoggerpublic void trace(@Nullable
@Nullable String marker,
String msg)
trace in interface IgniteLoggerpublic void debug(String msg)
debug in interface IgniteLoggerpublic void debug(@Nullable
@Nullable String marker,
String msg)
debug in interface IgniteLoggerpublic void info(String msg)
info in interface IgniteLoggerpublic void info(@Nullable
@Nullable String marker,
String msg)
info in interface IgniteLoggerpublic void warning(String msg, @Nullable @Nullable Throwable e)
warning in interface IgniteLoggerpublic void warning(@Nullable
@Nullable String marker,
String msg,
@Nullable
@Nullable Throwable e)
warning in interface IgniteLoggerpublic void error(String msg, @Nullable @Nullable Throwable e)
error in interface IgniteLoggerpublic void error(@Nullable
@Nullable String marker,
String msg,
@Nullable
@Nullable Throwable e)
error in interface IgniteLoggerpublic boolean isTraceEnabled()
isTraceEnabled in interface IgniteLoggerpublic boolean isInfoEnabled()
isInfoEnabled in interface IgniteLoggerpublic boolean isDebugEnabled()
isDebugEnabled in interface IgniteLoggerpublic boolean isQuiet()
isQuiet in interface IgniteLogger@Nullable public @Nullable String fileName()
fileName in interface IgniteLogger
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 8.9.29 Release Date : January 8 2026