01: package org.jacorb.config;
02:
03: /*
04: * JacORB - a free Java ORB
05: *
06: * Copyright (C) 1997-2004 Gerald Brose.
07: *
08: * This library is free software; you can redistribute it and/or
09: * 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: * @return the name of the actual logging mechanism, e.g., "logkit"
38: */
39: String getLoggingBackendName();
40:
41: /**
42: * @return a console Logger for a given name
43: */
44: Logger getNamedLogger(String name);
45:
46: /**
47: * @return a console Logger for a given name
48: */
49: Logger getNamedRootLogger(String name);
50:
51: /**
52: * @return a name Logger for a given file name and max size
53: */
54: Logger getNamedLogger(String name, String fileName, long maxFileSize)
55: throws java.io.IOException;
56:
57: /**
58: * set the file name and max file size for logging to a file
59: */
60: void setDefaultLogFile(String fileName, long maxLogSize)
61: throws java.io.IOException;
62: }
|