return this.pausedState;
}
- public void appendMessage(MLogFilter.Threshold level, String message) throws MLoggingException {
- this.appendMessage(level, message, 0);
+ public boolean appendMessage(MLogFilter.Threshold level, String message) throws MLoggingException {
+ return this.appendMessage(level, message, 0);
}
- public void appendMessage(MLogFilter.Threshold level, String message, int indentation) throws MLoggingException {
+ public boolean appendMessage(MLogFilter.Threshold level, String message, int indentation) throws MLoggingException {
if (null == level) {
throw new IllegalArgumentException("Invalid 'level': null.");
}
//
if (level.ordinal() > this.getThreshold().ordinal()) {
- return;
+ return false;
}
//
this.logMessageQueue.add(new MLogMessage(message, indentation));
if (!this.getPausedState()) {
this.flushMessages();
}
+ //
+ return true;
}
protected void flushMessages() throws MLoggingException {