Package elf4j.engine.service
Interface LogService
-
- All Superinterfaces:
PerformanceSensitive
- All Known Implementing Classes:
EventingLogService
public interface LogService extends PerformanceSensitive
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisEnabled(NativeLogger nativeLogger)voidlog(NativeLogger nativeLogger, Class<?> serviceInterfaceClass, Throwable throwable, Object message, Object[] arguments)-
Methods inherited from interface elf4j.engine.service.writer.PerformanceSensitive
includeCallerDetail, includeCallerThread
-
-
-
-
Method Detail
-
isEnabled
boolean isEnabled(NativeLogger nativeLogger)
- Parameters:
nativeLogger- to check for enablement- Returns:
- true if the logger's level is at or above configured minimum
-
log
void log(NativeLogger nativeLogger, Class<?> serviceInterfaceClass, Throwable throwable, Object message, Object[] arguments)
- Parameters:
nativeLogger- the serviced loggerserviceInterfaceClass- The concrete logging service (logger) implementation class that the client calls directly at runtime to make log requests. For the native ELF4J service implementation, this is always theNativeLoggerclass; may be a different class if this core library is used to service other logging API. i.e. the real-time caller of this class is the logging service's "caller class" whose details (such as method and line number) if required by configuration, may need to be resolved by walking the runtime calling stack trace.throwable- to logmessage- to log, can have argument placeholders to be replaced by the values of the specified argumentsarguments- arguments whose values will replace the placeholders in the specified message
-
-