1   /*
2    * Copyright (C) The DNA Group. All rights reserved.
3    *
4    * This software is published under the terms of the DNA
5    * Software License version 1.1, a copy of which has been included
6    * with this distribution in the LICENSE.txt file.
7    */
8   package org.codehaus.dna.impl;
9   
10  import org.codehaus.dna.impl.ConsoleLogger;
11  
12  class MockConsoleLogger
13      extends ConsoleLogger
14  {
15      public MockConsoleLogger()
16      {
17      }
18  
19      public MockConsoleLogger( final int level )
20      {
21          super( level );
22      }
23  
24      boolean m_output;
25      String m_type;
26      String m_message;
27      Throwable m_throwable;
28  
29      void doOutput( String type,
30                     String message,
31                     Throwable throwable )
32      {
33          m_output = true;
34          m_type = type;
35          m_message = message;
36          m_throwable = throwable;
37      }
38  }