1 package org.apache.velocity.runtime.log;
2
3 /*
4 * Licensed to the Apache Software Foundation (ASF) under one
5 * or more contributor license agreements. See the NOTICE file
6 * distributed with this work for additional information
7 * regarding copyright ownership. The ASF licenses this file
8 * to you under the Apache License, Version 2.0 (the
9 * "License"); you may not use this file except in compliance
10 * with the License. You may obtain a copy of the License at
11 *
12 * http://www.apache.org/licenses/LICENSE-2.0
13 *
14 * Unless required by applicable law or agreed to in writing,
15 * software distributed under the License is distributed on an
16 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 * KIND, either express or implied. See the License for the
18 * specific language governing permissions and limitations
19 * under the License.
20 */
21
22 import org.apache.velocity.runtime.RuntimeServices;
23
24 /**
25 * Old base interface that old logging systems needed to implement.
26 *
27 * @author <a href="mailto:jon@latchkey.com">Jon S. Stevens</a>
28 * @author <a href="mailto:geirm@optonline.net">Geir Magnusson Jr.</a>
29 * @deprecated Use LogChute instead!
30 * @version $Id: LogSystem.java 730039 2008-12-30 03:53:19Z byron $
31 */
32 public interface LogSystem
33 {
34 /**
35 * @deprecated This is unused and meaningless
36 */
37 public final static boolean DEBUG_ON = true;
38
39 /**
40 * ID for debug messages.
41 */
42 public final static int DEBUG_ID = 0;
43
44 /**
45 * ID for info messages.
46 */
47 public final static int INFO_ID = 1;
48
49 /**
50 * ID for warning messages.
51 */
52 public final static int WARN_ID = 2;
53
54 /**
55 * ID for error messages.
56 */
57 public final static int ERROR_ID = 3;
58
59 /**
60 * Initializes this LogSystem.
61 * @param rs
62 * @throws Exception
63 */
64 public void init( RuntimeServices rs ) throws Exception;
65
66 /**
67 * @param level
68 * @param message
69 * @deprecated Use log(level, message).
70 */
71 public void logVelocityMessage(int level, String message);
72 }