public abstract class LogFactory extends Object
Logger
.
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 Logger
that
forwards ModeShape log messages to the application's logging framework.
Modifier and Type | Field and Description |
---|---|
static String |
CUSTOM_LOG_FACTORY_CLASSNAME
The name of the
LogFactory implementation 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. |
Constructor and Description |
---|
LogFactory() |
Modifier and Type | Method and Description |
---|---|
protected abstract Logger |
getLogger(String name)
Return a logger named according to the name parameter.
|
public static final String CUSTOM_LOG_FACTORY_CLASSNAME
LogFactory
implementation 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–2016 JBoss, a division of Red Hat. All rights reserved.