Package mondrian.recorder
Class LoggerRecorder
- java.lang.Object
-
- mondrian.recorder.AbstractRecorder
-
- mondrian.recorder.LoggerRecorder
-
- All Implemented Interfaces:
MessageRecorder
public class LoggerRecorder extends AbstractRecorder
Implementation ofMessageRecorder
that writes to alog4j logger
.- Author:
- Richard M. Emberson
-
-
Field Summary
-
Fields inherited from class mondrian.recorder.AbstractRecorder
DEFAULT_MSG_LIMIT
-
-
Constructor Summary
Constructors Constructor Description LoggerRecorder(org.apache.logging.log4j.Logger logger)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
recordMessage(String msg, Object info, mondrian.recorder.AbstractRecorder.MsgType msgType)
Handles a message.-
Methods inherited from class mondrian.recorder.AbstractRecorder
clear, getContext, getErrorCount, getInfoCount, getRunTimeMillis, getStartTimeMillis, getWarningCount, hasErrors, hasInformation, hasWarnings, logMessage, popContextName, pushContextName, reportError, reportError, reportError, reportError, reportInfo, reportInfo, reportWarning, reportWarning, throwRTException
-
-
-
-
Method Detail
-
recordMessage
protected void recordMessage(String msg, Object info, mondrian.recorder.AbstractRecorder.MsgType msgType)
Description copied from class:AbstractRecorder
Handles a message. Classes implementing this abstract class must provide an implemention of this method; it receives all warning/error messages.- Specified by:
recordMessage
in classAbstractRecorder
- Parameters:
msg
- the error or warning message.info
- the information Object which might be null.msgType
- one of the message type enum values
-
-