KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > avalon > excalibur > logger > test > TestComponentImpl


1 /*
2  * Copyright (C) The Apache Software Foundation. All rights reserved.
3  *
4  * This software is published under the terms of the Apache Software License
5  * version 1.1, a copy of which has been included with this distribution in
6  * the LICENSE.txt file.
7  */

8 package org.apache.avalon.excalibur.logger.test;
9
10 import org.apache.avalon.framework.logger.AbstractLogEnabled;
11 import org.apache.avalon.framework.logger.Logger;
12 import org.apache.log.LogTarget;
13
14 /**
15  * TestComponent.
16  *
17  * @author <a HREF="mailto:giacomo@apache,org">Giacomo Pati</a>
18  * @version CVS $Revision: 1.7 $ $Date: 2001/12/11 09:53:39 $
19  */

20 public class TestComponentImpl
21     extends AbstractLogEnabled
22     implements TestComponent
23 {
24     public void test( Logger defaultLogger, String JavaDoc message )
25     {
26         final Logger logger = getLogger();
27         //final String cat = logger.getCategory();
28
//defaultLogger.info( "Category is " + cat );
29
logger.debug( message );
30         logger.info( message );
31         logger.warn( message );
32         logger.error( message );
33         logger.fatalError( message );
34     }
35 }
36
Popular Tags