Class TechnicalLoggerSLF4JImpl
- java.lang.Object
-
- org.bonitasoft.engine.log.technical.TechnicalLoggerSLF4JImpl
-
- All Implemented Interfaces:
TechnicalLoggerService
public class TechnicalLoggerSLF4JImpl extends java.lang.Object implements TechnicalLoggerService
- Author:
- Baptiste Mesta, Matthieu Chaffotte, Celine Souchet
-
-
Constructor Summary
Constructors Constructor Description TechnicalLoggerSLF4JImpl()TechnicalLoggerSLF4JImpl(long tenantId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TechnicalLoggerasLogger(java.lang.Class<?> clazz)Provides aTechnicalLoggerbacked to thisTechnicalLoggerService.booleanisLoggable(java.lang.Class<?> callerClass, TechnicalLogSeverity severity)voidlog(java.lang.Class<?> callerClass, TechnicalLogSeverity severity, java.lang.String message)voidlog(java.lang.Class<?> callerClass, TechnicalLogSeverity severity, java.lang.String message, java.lang.Object... arguments)Generates parametrized logs like slf4j does.voidlog(java.lang.Class<?> callerClass, TechnicalLogSeverity severity, java.lang.String message, java.lang.Throwable t)voidlog(java.lang.Class<?> callerClass, TechnicalLogSeverity severity, java.lang.Throwable t)
-
-
-
Method Detail
-
log
public void log(java.lang.Class<?> callerClass, TechnicalLogSeverity severity, java.lang.Throwable t)- Specified by:
login interfaceTechnicalLoggerService
-
asLogger
public TechnicalLogger asLogger(java.lang.Class<?> clazz)
Description copied from interface:TechnicalLoggerServiceProvides aTechnicalLoggerbacked to thisTechnicalLoggerService.- Specified by:
asLoggerin interfaceTechnicalLoggerService
-
log
public void log(java.lang.Class<?> callerClass, TechnicalLogSeverity severity, java.lang.String message)- Specified by:
login interfaceTechnicalLoggerService
-
log
public void log(java.lang.Class<?> callerClass, TechnicalLogSeverity severity, java.lang.String message, java.lang.Object... arguments)Description copied from interface:TechnicalLoggerServiceGenerates parametrized logs like slf4j does.
Usage example:
log(getClass(), INFO, "Ready to update process {} with {}", processId, complexObjectWithSlowToStringMethod);- Specified by:
login interfaceTechnicalLoggerService
-
log
public void log(java.lang.Class<?> callerClass, TechnicalLogSeverity severity, java.lang.String message, java.lang.Throwable t)- Specified by:
login interfaceTechnicalLoggerService
-
isLoggable
public boolean isLoggable(java.lang.Class<?> callerClass, TechnicalLogSeverity severity)- Specified by:
isLoggablein interfaceTechnicalLoggerService
-
-