1 /**************************************************************************
2 Copyright 2005 Webstersmalley
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
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
18
19 package com.webstersmalley.statuslog;
20
21 import org.apache.commons.logging.Log;
22 import org.apache.commons.logging.LogFactory;
23
24 /***
25 * @author Matthew Smalley
26 */
27 public class StatusLog
28 {
29 /*** Logger for the class. */
30 private static Log log = LogFactory.getLog(StatusLog.class);
31
32 public static void debug(Object msg)
33 {
34 log.debug(msg);
35 }
36
37 public static void debug(Object msg, Throwable t)
38 {
39 log.debug(msg, t);
40 }
41
42 public static void info(Object msg)
43 {
44 log.info(msg);
45 }
46
47 public static void info(Object msg, Throwable t)
48 {
49 log.info(msg, t);
50 }
51
52 public static void warn(Object msg)
53 {
54 log.warn(msg);
55 }
56
57 public static void warn(Object msg, Throwable t)
58 {
59 log.warn(msg, t);
60 }
61
62 public static void error(Object msg)
63 {
64 log.error(msg);
65 }
66
67 public static void error(Object msg, Throwable t)
68 {
69 log.error(msg, t);
70 }
71
72 public static void fatal(Object msg)
73 {
74 log.fatal(msg);
75 }
76
77 public static void fatal(Object msg, Throwable t)
78 {
79 log.fatal(msg, t);
80 }
81 }