Class BasicLogger
- java.lang.Object
-
- org.nuxeo.ecm.platform.importer.log.BasicLogger
-
- All Implemented Interfaces:
ImporterLogger
- Direct Known Subclasses:
BufferredLogger
public class BasicLogger extends Object implements ImporterLogger
Simple logger that wraps a bufferized string logger (for remote retrieval) and a log4J logger- Author:
- tiry
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
bufferActive
protected Log
javaLogger
-
Constructor Summary
Constructors Constructor Description BasicLogger(Log javaLogger)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
debug(String message)
void
debug(String message, Throwable t)
void
error(String message)
void
error(String message, Throwable t)
String
getLoggerBuffer()
String
getLoggerBuffer(String sep)
void
info(String message)
boolean
isBufferActive()
void
setBufferActive(boolean active)
void
warn(String message)
-
-
-
Field Detail
-
javaLogger
protected Log javaLogger
-
bufferActive
protected boolean bufferActive
-
-
Constructor Detail
-
BasicLogger
public BasicLogger(Log javaLogger)
-
-
Method Detail
-
info
public void info(String message)
- Specified by:
info
in interfaceImporterLogger
-
warn
public void warn(String message)
- Specified by:
warn
in interfaceImporterLogger
-
debug
public void debug(String message)
- Specified by:
debug
in interfaceImporterLogger
-
debug
public void debug(String message, Throwable t)
- Specified by:
debug
in interfaceImporterLogger
-
error
public void error(String message)
- Specified by:
error
in interfaceImporterLogger
-
error
public void error(String message, Throwable t)
- Specified by:
error
in interfaceImporterLogger
-
getLoggerBuffer
public String getLoggerBuffer(String sep)
- Specified by:
getLoggerBuffer
in interfaceImporterLogger
-
getLoggerBuffer
public String 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
-
-