1 /*
2 * $HeadURL: $
3 * $Date: $
4 * $Revision: $
5 * $Author: $
6 *
7 * Copyright (c) 2005 MindTree Consulting Ltd.
8 *
9 * This file is part of Insight.
10 *
11 * Insight is free software: you can redistribute it and/or modify it under the
12 * terms of the GNU General Public License as published by the Free Software
13 * Foundation, either version 3 of the License, or (at your option) any later
14 * version.
15 *
16 * Insight is distributed in the hope that it will be useful, but
17 * WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
19 * Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License along with
22 * Insight. If not, see <http://www.gnu.org/licenses/>.
23 */
24 package com.mindtree.techworks.insight.spi;
25
26 import org.apache.log4j.Level;
27
28 /**
29 *
30 * The <code>LogLevel</code> class is a derivative of the Apache log4j Level class.
31 *
32 * @author Regunath B
33 * @version 1.0, 04/12/08
34 * @see org.apache.log4j.Level
35 */
36
37 public class LogLevel extends Level {
38
39 /**
40 * Used for object serialization
41 */
42 private static final long serialVersionUID = -4572666045350823176L;
43
44 public static final int DEFAULT_SYSLOG_EQUIVALENT = 9999;
45
46 /**
47 * Constructor for this class. Uses the same set of parameters as the super class
48 * @param level int representation of level for this LogLevel
49 * @param levelStr String representation of level for this LogLevel
50 */
51 protected LogLevel(int level, String levelStr) {
52 super(level, levelStr, DEFAULT_SYSLOG_EQUIVALENT);
53 }
54 }