01: /*
02: * Copyright 1999,2004 The Apache Software Foundation.
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16:
17: package org.apache.catalina.logger;
18:
19: /**
20: * Simple implementation of <b>Logger</b> that writes to System.err.
21: *
22: * @author Craig R. McClanahan
23: * @version $Revision: 1.2 $ $Date: 2004/02/27 14:58:44 $
24: */
25:
26: public class SystemErrLogger extends LoggerBase {
27:
28: // ----------------------------------------------------- Instance Variables
29:
30: /**
31: * The descriptive information about this implementation.
32: */
33: protected static final String info = "org.apache.catalina.logger.SystemErrLogger/1.0";
34:
35: // --------------------------------------------------------- Public Methods
36:
37: /**
38: * Writes the specified message to a servlet log file, usually an event
39: * log. The name and type of the servlet log is specific to the
40: * servlet container.
41: *
42: * @param msg A <code>String</code> specifying the message to be written
43: * to the log file
44: */
45: public void log(String msg) {
46:
47: System.err.println(msg);
48:
49: }
50:
51: }
|