1 |
/* LogManager.java -- a class for maintaining Loggers and managing |
/* LogManager.java -- a class for maintaining Loggers and managing |
2 |
configuration properties |
configuration properties |
3 |
Copyright (C) 2002 Free Software Foundation, Inc. |
Copyright (C) 2002,2005 Free Software Foundation, Inc. |
4 |
|
|
5 |
This file is part of GNU Classpath. |
This file is part of GNU Classpath. |
6 |
|
|
95 |
* the system property <code>gnu.classpath.home.url</code>.</li> |
* the system property <code>gnu.classpath.home.url</code>.</li> |
96 |
* </ul> |
* </ul> |
97 |
* |
* |
98 |
|
* <p>The <code>LogManager</code> has a level of <code>INFO</code> by |
99 |
|
* default, and this will be inherited by <code>Logger</code>s unless they |
100 |
|
* override it either by properties or programmatically. |
101 |
|
* |
102 |
* @author Sascha Brawer (brawer@acm.org) |
* @author Sascha Brawer (brawer@acm.org) |
103 |
*/ |
*/ |
104 |
public class LogManager |
public class LogManager |
144 |
logManager = this; |
logManager = this; |
145 |
loggers = new java.util.HashMap(); |
loggers = new java.util.HashMap(); |
146 |
rootLogger = new Logger("", null); |
rootLogger = new Logger("", null); |
147 |
|
rootLogger.setLevel(Level.INFO); |
148 |
addLogger(rootLogger); |
addLogger(rootLogger); |
149 |
|
|
150 |
/* Make sure that Logger.global has the rootLogger as its parent. |
/* Make sure that Logger.global has the rootLogger as its parent. |