1 2 3 /* 4 * The contents of this file are subject to the terms 5 * of the Common Development and Distribution License 6 * (the "License"). You may not use this file except 7 * in compliance with the License. 8 * 9 * You can obtain a copy of the license at 10 * glassfish/bootstrap/legal/CDDLv1.0.txt or 11 * https://glassfish.dev.java.net/public/CDDLv1.0.html. 12 * See the License for the specific language governing 13 * permissions and limitations under the License. 14 * 15 * When distributing Covered Code, include this CDDL 16 * HEADER in each file and include the License file at 17 * glassfish/bootstrap/legal/CDDLv1.0.txt. If applicable, 18 * add the following below this CDDL HEADER, with the 19 * fields enclosed by brackets "[]" replaced with your 20 * own identifying information: Portions Copyright [yyyy] 21 * [name of copyright owner] 22 * 23 * Copyright 2005 Sun Microsystems, Inc. All rights reserved. 24 * 25 * Portions Copyright Apache Software Foundation. 26 */ 27 28 29 package org.apache.catalina.logger; 30 31 32 /** 33 * Simple implementation of <b>Logger</b> that writes to System.err. 34 * 35 * @author Craig R. McClanahan 36 * @version $Revision: 1.2 $ $Date: 2005/12/08 01:27:46 $ 37 */ 38 39 public class SystemErrLogger 40 extends LoggerBase { 41 42 43 // ----------------------------------------------------- Instance Variables 44 45 46 /** 47 * The descriptive information about this implementation. 48 */ 49 protected static final String info = 50 "org.apache.catalina.logger.SystemErrLogger/1.0"; 51 52 53 // --------------------------------------------------------- Public Methods 54 55 56 /** 57 * Writes the specified message to a servlet log file, usually an event 58 * log. The name and type of the servlet log is specific to the 59 * servlet container. 60 * 61 * @param msg A <code>String</code> specifying the message to be written 62 * to the log file 63 */ 64 public void log(String msg) { 65 66 System.err.println(msg); 67 68 } 69 70 71 } 72