Package risesoft.data.transfer.core.log
Class HandledLoggerFactory
- java.lang.Object
-
- risesoft.data.transfer.core.log.HandledLoggerFactory
-
- All Implemented Interfaces:
Handle,InitApplicationConfigHandle,LoggerFactory,LogHandleReference,Plug
public class HandledLoggerFactory extends Object implements Plug, LoggerFactory, InitApplicationConfigHandle, LogHandleReference
根据监听的handle发送对应的事件,当未指定日志工厂时,默认使用此日志工厂。- Author:
- lb
- Date:
- 2024年9月4日
-
-
Constructor Summary
Constructors Constructor Description HandledLoggerFactory(HandleManager handleManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HandleContext<LogDebugHandle>getLogDebugHandle()HandleContext<LogErrorHandle>getLogErrorHandle()LoggergetLogger(Class<?> type)类型LoggergetLogger(String name)获取日志类HandleContext<LogInfoHandle>getLogInfoHandle()voidinitApplicationConfig(Configuration configuration)初始化全局配置booleanisDebug()booleanisError()booleanisInfo()booleanregister(JobContext jobContext)是否注册
-
-
-
Constructor Detail
-
HandledLoggerFactory
public HandledLoggerFactory(HandleManager handleManager)
-
-
Method Detail
-
getLogger
public Logger getLogger(String name)
Description copied from interface:LoggerFactory获取日志类- Specified by:
getLoggerin interfaceLoggerFactory- Returns:
-
getLogger
public Logger getLogger(Class<?> type)
Description copied from interface:LoggerFactory类型- Specified by:
getLoggerin interfaceLoggerFactory- Returns:
-
initApplicationConfig
public void initApplicationConfig(Configuration configuration)
Description copied from interface:InitApplicationConfigHandle初始化全局配置- Specified by:
initApplicationConfigin interfaceInitApplicationConfigHandle
-
isDebug
public boolean isDebug()
- Specified by:
isDebugin interfaceLogHandleReference
-
isInfo
public boolean isInfo()
- Specified by:
isInfoin interfaceLogHandleReference
-
isError
public boolean isError()
- Specified by:
isErrorin interfaceLogHandleReference
-
getLogDebugHandle
public HandleContext<LogDebugHandle> getLogDebugHandle()
- Specified by:
getLogDebugHandlein interfaceLogHandleReference
-
getLogInfoHandle
public HandleContext<LogInfoHandle> getLogInfoHandle()
- Specified by:
getLogInfoHandlein interfaceLogHandleReference
-
getLogErrorHandle
public HandleContext<LogErrorHandle> getLogErrorHandle()
- Specified by:
getLogErrorHandlein interfaceLogHandleReference
-
register
public boolean register(JobContext jobContext)
Description copied from interface:Plug是否注册
-
-