Class BasicLogger
java.lang.Object
org.nuxeo.ecm.platform.importer.log.BasicLogger
- All Implemented Interfaces:
ImporterLogger
- Direct Known Subclasses:
BufferredLogger
Simple logger that wraps a bufferized string logger (for remote retrieval) and a log4J logger
- Author:
- tiry
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
protected org.apache.logging.log4j.Logger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
void
getLoggerBuffer
(String sep) void
boolean
void
setBufferActive
(boolean active) void
-
Field Details
-
javaLogger
protected org.apache.logging.log4j.Logger javaLogger -
bufferActive
protected boolean bufferActive
-
-
Constructor Details
-
BasicLogger
public BasicLogger(org.apache.logging.log4j.Logger javaLogger)
-
-
Method Details
-
info
- Specified by:
info
in interfaceImporterLogger
-
warn
- Specified by:
warn
in interfaceImporterLogger
-
debug
- Specified by:
debug
in interfaceImporterLogger
-
debug
- Specified by:
debug
in interfaceImporterLogger
-
error
- Specified by:
error
in interfaceImporterLogger
-
error
- Specified by:
error
in interfaceImporterLogger
-
getLoggerBuffer
- Specified by:
getLoggerBuffer
in interfaceImporterLogger
-
getLoggerBuffer
- Specified by:
getLoggerBuffer
in interfaceImporterLogger
-
isBufferActive
public boolean isBufferActive()- Specified by:
isBufferActive
in interfaceImporterLogger
-
setBufferActive
public void setBufferActive(boolean active) - Specified by:
setBufferActive
in interfaceImporterLogger
-