KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > avalon > phoenix > interfaces > LogManager


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.phoenix.interfaces;
9
10 import org.apache.avalon.framework.configuration.Configuration;
11 import org.apache.avalon.framework.logger.Logger;
12 import org.apache.avalon.phoenix.metadata.SarMetaData;
13
14 /**
15  * Interface that is used to manage Log objects for a Sar.
16  *
17  * @author <a HREF="mailto:peter at apache.org">Peter Donald</a>
18  */

19 public interface LogManager
20 {
21     String JavaDoc ROLE = LogManager.class.getName();
22
23     /**
24      * Create a Logger hierarchy for an applicaiton.
25      *
26      * @param metaData the metaData describing applicaiton
27      * @param logs the configuration data for logs
28      * @param classLoader the ClassLoader for aapplication
29      * @return the configured Logger hierarchy
30      * @throws Exception if an error occurs
31      */

32     Logger createHierarchy( SarMetaData metaData,
33                             Configuration logs,
34                             ClassLoader JavaDoc classLoader )
35         throws Exception JavaDoc;
36 }
37
Popular Tags