public abstract class LogFactory extends Object
ModeShape provides out of the box several LogFactory implementations that work with common log frameworks:
However, since ModeShape can be embedded into any application, it is possible that applications use a logging framework other
than those listed above. So before falling back to the JDK logging, ModeShape looks for the
org.modeshape.common.logging.CustomLoggerFactory class, and if found attempts to instantiate and use it. But
ModeShape does not provide this class out of the box; rather an application that is embedding ModeShape can provide its own
version of that class that should extend
LogFactory and create an appropriate implementation of
forwards ModeShape log messages to the application's logging framework.
|Modifier and Type||Field and Description|
The name of the
|Constructor and Description|
|Modifier and Type||Method and Description|
Return a logger named according to the name parameter.
public static final String CUSTOM_LOG_FACTORY_CLASSNAME
LogFactoryimplementation that is not provided out of the box but can be created, implemented, and placed on the classpath to have ModeShape send log messages to a custom framework.
Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.