KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jacorb > config > LoggerFactory


1 package org.jacorb.config;
2
3 /*
4  * JacORB - a free Java ORB
5  *
6  * Copyright (C) 1997-2004 Gerald Brose.
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Library General Public
10  * License as published by the Free Software Foundation; either
11  * version 2 of the License, or (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  * Library General Public License for more details.
17  *
18  * You should have received a copy of the GNU Library General Public
19  * License along with this library; if not, write to the Free
20  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21  */

22
23 import org.apache.avalon.framework.logger.*;
24 import org.apache.avalon.framework.configuration.Configurable;
25
26 /**
27  * Shields JacORB from details of creating Avalon loggers for a
28  * specific logging backend.
29  *
30  * @author Gerald Brose
31  * @version $Id: LoggerFactory.java,v 1.4 2004/05/09 20:18:34 francisco Exp $
32  * @since JacORB 2.0 beta 3
33  */

34
35 public interface LoggerFactory extends Configurable
36 {
37     /**
38      * @return the name of the actual logging mechanism, e.g., "logkit"
39      */

40     String JavaDoc getLoggingBackendName();
41
42     /**
43      * @return a console Logger for a given name
44      */

45     Logger getNamedLogger(String JavaDoc name);
46
47     /**
48      * @return a console Logger for a given name
49      */

50     Logger getNamedRootLogger(String JavaDoc name);
51
52     /**
53      * @return a name Logger for a given file name and max size
54      */

55     Logger getNamedLogger(String JavaDoc name, String JavaDoc fileName, long maxFileSize)
56         throws java.io.IOException JavaDoc;
57
58     /**
59      * set the file name and max file size for logging to a file
60      */

61     void setDefaultLogFile(String JavaDoc fileName, long maxLogSize)
62         throws java.io.IOException JavaDoc;
63 }
64
Popular Tags