Package de.mhus.lib.logging
Class JavaLoggerFactory
- java.lang.Object
-
- de.mhus.lib.core.logging.LogFactory
-
- de.mhus.lib.logging.JavaLoggerFactory
-
- All Implemented Interfaces:
IBase
public class JavaLoggerFactory extends LogFactory
-
-
Field Summary
-
Fields inherited from class de.mhus.lib.core.logging.LogFactory
level, levelMapper
-
-
Constructor Summary
Constructors Constructor Description JavaLoggerFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LogEnginecreateInstance(String name)Construct and return aLoginstance, using the factory's current set of configuration attributes.voidinit(ResourceNode<?> config)-
Methods inherited from class de.mhus.lib.core.logging.LogFactory
getDefaultLevel, getInstance, getInstance, getLevelMapper, getLog, getMaxMessageSize, getParameterMapper, init, setDefaultLevel, setLevelMapper, setMaxMessageSize, setParameterMapper
-
-
-
-
Method Detail
-
init
public void init(ResourceNode<?> config) throws Exception
- Specified by:
initin classLogFactory- Throws:
Exception
-
createInstance
public LogEngine createInstance(String name)
Description copied from class:LogFactoryConstruct and return a
Loginstance, using the factory's current set of configuration attributes.NOTE - Depending upon the implementation of the
LogFactoryyou are using, theLoginstance you are returned may or may not be local to the current application, and may or may not be returned again on a subsequent call with the same name argument.- Specified by:
createInstancein classLogFactory- Parameters:
name- Logical name of theLoginstance to be returned (the meaning of this name is only known to the underlying logging implementation that is being wrapped)- Returns:
- the log engine
-
-