01: /*
02: * Copyright (C) The DNA Group. All rights reserved.
03: *
04: * This software is published under the terms of the DNA
05: * Software License version 1.1, a copy of which has been included
06: * with this distribution in the LICENSE.txt file.
07: */
08: package org.codehaus.dna.impl;
09:
10: import org.apache.log.LogEvent;
11: import org.apache.log.LogTarget;
12: import org.apache.log.Priority;
13:
14: class MockLogTarget implements LogTarget {
15: boolean m_output;
16: Priority m_priority;
17: String m_message;
18: Throwable m_throwable;
19:
20: public void processEvent(final LogEvent event) {
21: m_output = true;
22: m_priority = event.getPriority();
23: m_message = event.getMessage();
24: m_throwable = event.getThrowable();
25: }
26: }
|