类 HandledLoggerFactory
- java.lang.Object
-
- risesoft.data.transfer.core.log.HandledLoggerFactory
-
- 所有已实现的接口:
Handle,InitApplicationConfigHandle,LoggerFactory,LogHandleReference,Plug
public class HandledLoggerFactory extends Object implements Plug, LoggerFactory, InitApplicationConfigHandle, LogHandleReference
根据监听的handle发送对应的事件,当未指定日志工厂时,默认使用此日志工厂。- 作者:
- lb
- Date:
- 2024年9月4日
-
-
构造器概要
构造器 构造器 说明 HandledLoggerFactory(HandleManager handleManager)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 HandleContext<LogDebugHandle>getLogDebugHandle()HandleContext<LogErrorHandle>getLogErrorHandle()LoggergetLogger(Class<?> type)类型LoggergetLogger(String name)获取日志类HandleContext<LogInfoHandle>getLogInfoHandle()voidinitApplicationConfig(Configuration configuration)初始化全局配置booleanisDebug()booleanisError()booleanisInfo()booleanregister(JobContext jobContext)是否注册
-
-
-
构造器详细资料
-
HandledLoggerFactory
public HandledLoggerFactory(HandleManager handleManager)
-
-
方法详细资料
-
getLogger
public Logger getLogger(String name)
从接口复制的说明:LoggerFactory获取日志类- 指定者:
getLogger在接口中LoggerFactory- 返回:
-
getLogger
public Logger getLogger(Class<?> type)
从接口复制的说明:LoggerFactory类型- 指定者:
getLogger在接口中LoggerFactory- 返回:
-
initApplicationConfig
public void initApplicationConfig(Configuration configuration)
从接口复制的说明:InitApplicationConfigHandle初始化全局配置
-
isDebug
public boolean isDebug()
- 指定者:
isDebug在接口中LogHandleReference
-
isInfo
public boolean isInfo()
- 指定者:
isInfo在接口中LogHandleReference
-
isError
public boolean isError()
- 指定者:
isError在接口中LogHandleReference
-
getLogDebugHandle
public HandleContext<LogDebugHandle> getLogDebugHandle()
- 指定者:
getLogDebugHandle在接口中LogHandleReference
-
getLogInfoHandle
public HandleContext<LogInfoHandle> getLogInfoHandle()
- 指定者:
getLogInfoHandle在接口中LogHandleReference
-
getLogErrorHandle
public HandleContext<LogErrorHandle> getLogErrorHandle()
- 指定者:
getLogErrorHandle在接口中LogHandleReference
-
register
public boolean register(JobContext jobContext)
从接口复制的说明:Plug是否注册
-
-