Class BufferredLogger
java.lang.Object
org.nuxeo.ecm.platform.importer.log.BasicLogger
org.nuxeo.ecm.platform.importer.log.BufferredLogger
- All Implemented Interfaces:
ImporterLogger
- Author:
- Thierry Delprat
-
Field Summary
Modifier and TypeFieldDescriptionprotected Integer
protected static int
protected ReentrantReadWriteLock
protected LinkedList<String>
Fields inherited from class org.nuxeo.ecm.platform.importer.log.BasicLogger
bufferActive, javaLogger
-
Constructor Summary
ConstructorDescriptionBufferredLogger
(org.apache.logging.log4j.Logger javaLogger) BufferredLogger
(org.apache.logging.log4j.Logger javaLogger, int bufferSize) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
void
getLoggerBuffer
(String sep) protected int
void
protected void
logInStack
(String level, String message) void
Methods inherited from class org.nuxeo.ecm.platform.importer.log.BasicLogger
getLoggerBuffer, isBufferActive, setBufferActive
-
Field Details
-
lock
-
DEFAULT_LOG_BUFFER_LENGTH
protected static int DEFAULT_LOG_BUFFER_LENGTH -
bufferSize
-
logStack
-
-
Constructor Details
-
BufferredLogger
public BufferredLogger(org.apache.logging.log4j.Logger javaLogger) -
BufferredLogger
public BufferredLogger(org.apache.logging.log4j.Logger javaLogger, int bufferSize)
-
-
Method Details
-
getMaxStackLen
protected int getMaxStackLen() -
logInStack
-
getLoggerBuffer
- Specified by:
getLoggerBuffer
in interfaceImporterLogger
- Overrides:
getLoggerBuffer
in classBasicLogger
-
info
- Specified by:
info
in interfaceImporterLogger
- Overrides:
info
in classBasicLogger
-
warn
- Specified by:
warn
in interfaceImporterLogger
- Overrides:
warn
in classBasicLogger
-
debug
- Specified by:
debug
in interfaceImporterLogger
- Overrides:
debug
in classBasicLogger
-
debug
- Specified by:
debug
in interfaceImporterLogger
- Overrides:
debug
in classBasicLogger
-
error
- Specified by:
error
in interfaceImporterLogger
- Overrides:
error
in classBasicLogger
-
error
- Specified by:
error
in interfaceImporterLogger
- Overrides:
error
in classBasicLogger
-