Class Slf4jLogWriterProvider
- java.lang.Object
-
- org.apache.jackrabbit.spi.commons.logging.Slf4jLogWriterProvider
-
- All Implemented Interfaces:
LogWriterProvider
public class Slf4jLogWriterProvider extends Object implements LogWriterProvider
LogWriterProvider
instance which providesSlf4jLogWriter
s.
-
-
Constructor Summary
Constructors Constructor Description Slf4jLogWriterProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LogWriter
getLogWriter(Batch batch)
Returns aSlf4jLogWriter
if the logger forbatch.getClass()
has debug level enabled.LogWriter
getLogWriter(IdFactory idFactory)
Returns aSlf4jLogWriter
if the logger foridFactory.getClass()
has debug level enabled.LogWriter
getLogWriter(NameFactory nameFactory)
Returns aSlf4jLogWriter
if the logger fornameFactory.getClass()
has debug level enabled.LogWriter
getLogWriter(PathFactory pathFactory)
Returns aSlf4jLogWriter
if the logger forpathFactory.getClass()
has debug level enabled.LogWriter
getLogWriter(QValueFactory valueFactory)
Returns aSlf4jLogWriter
if the logger forvalueFactory.getClass()
has debug level enabled.LogWriter
getLogWriter(RepositoryService service)
Returns aSlf4jLogWriter
if the logger forservice.getClass()
has debug level enabled.LogWriter
getLogWriter(SessionInfo sessionInfo)
Returns aSlf4jLogWriter
if the logger forsessionInfo.getClass()
has debug level enabled.
-
-
-
Method Detail
-
getLogWriter
public LogWriter getLogWriter(RepositoryService service)
Returns aSlf4jLogWriter
if the logger forservice.getClass()
has debug level enabled. Returnsnull
otherwise.- Specified by:
getLogWriter
in interfaceLogWriterProvider
- Returns:
- A LogWriter for logging calls to
service
.
-
getLogWriter
public LogWriter getLogWriter(NameFactory nameFactory)
Returns aSlf4jLogWriter
if the logger fornameFactory.getClass()
has debug level enabled. Returnsnull
otherwise.- Specified by:
getLogWriter
in interfaceLogWriterProvider
- Returns:
- A LogWriter for logging calls to
nameFactory
.
-
getLogWriter
public LogWriter getLogWriter(PathFactory pathFactory)
Returns aSlf4jLogWriter
if the logger forpathFactory.getClass()
has debug level enabled. Returnsnull
otherwise.- Specified by:
getLogWriter
in interfaceLogWriterProvider
- Returns:
- A LogWriter for logging calls to
pathFactory
.
-
getLogWriter
public LogWriter getLogWriter(IdFactory idFactory)
Returns aSlf4jLogWriter
if the logger foridFactory.getClass()
has debug level enabled. Returnsnull
otherwise.- Specified by:
getLogWriter
in interfaceLogWriterProvider
- Returns:
- A LogWriter for logging calls to
idFactory
.
-
getLogWriter
public LogWriter getLogWriter(QValueFactory valueFactory)
Returns aSlf4jLogWriter
if the logger forvalueFactory.getClass()
has debug level enabled. Returnsnull
otherwise.- Specified by:
getLogWriter
in interfaceLogWriterProvider
- Returns:
- A LogWriter for logging calls to
qValueFactory
.
-
getLogWriter
public LogWriter getLogWriter(SessionInfo sessionInfo)
Returns aSlf4jLogWriter
if the logger forsessionInfo.getClass()
has debug level enabled. Returnsnull
otherwise.- Specified by:
getLogWriter
in interfaceLogWriterProvider
- Returns:
- A LogWriter for logging calls to
sessionInfo
.
-
getLogWriter
public LogWriter getLogWriter(Batch batch)
Returns aSlf4jLogWriter
if the logger forbatch.getClass()
has debug level enabled. Returnsnull
otherwise.- Specified by:
getLogWriter
in interfaceLogWriterProvider
- Returns:
- A LogWriter for logging calls to
batch
.
-
-