01: /*
02: * Copyright (C) 1999-2004 <A href="http://www-ist.massey.ac.nz/JBDietrich" target="_top">Jens Dietrich</a>
03: *
04: * This library is free software; you can redistribute it and/or
05: * modify it under the terms of the GNU Lesser General Public
06: * License as published by the Free Software Foundation; either
07: * version 2 of the License, or (at your option) any later version.
08: *
09: * This library is distributed in the hope that it will be useful,
10: * but WITHOUT ANY WARRANTY; without even the implied warranty of
11: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12: * Lesser General Public License for more details.
13: *
14: * You should have received a copy of the GNU Lesser General Public
15: * License along with this library; if not, write to the Free Software
16: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17: */
18: package org.mandarax.util.logging;
19:
20: /**
21: * Log categories are defined here. Categories are defined by using the abstract Logger interface
22: * in the util package. Implementation use a certain logging frameworks such as apache log4j or
23: * jdk (1.4 and later) logging.
24: * <p>
25: * For more information on log4j click <a href="http://jakarta.apache.org" target="_top">here</a>.
26: * @see org.mandarax.util.Logger
27: * @see org.mandarax.util.LoggerFactory
28: * @author <A href="http://www-ist.massey.ac.nz/JBDietrich" target="_top">Jens Dietrich</A>
29: * @version 3.4 <7 March 05>
30: * @since 1.1
31: */
32: public interface LogCategories {
33:
34: // Categories to log the inference engine
35: public static final Logger LOG_IE = LoggerFactory
36: .getDefaultFactory().getLogger("MANDARAX.IE");
37: public static final Logger LOG_IE_LOOPCHECK = LoggerFactory
38: .getDefaultFactory().getLogger("MANDARAX.IE.LOOPCHECK");
39: public static final Logger LOG_IE_RESULT = LoggerFactory
40: .getDefaultFactory().getLogger("MANDARAX.IE.RESULT");
41: public static final Logger LOG_IE_STEP = LoggerFactory
42: .getDefaultFactory().getLogger("MANDARAX.IE.STEP");
43: public static final Logger LOG_IE_UNIFICATION = LoggerFactory
44: .getDefaultFactory().getLogger("MANDARAX.IE.UNIFICATION");
45:
46: // Categories to log the knowledge base
47: public static final Logger LOG_KB = LoggerFactory
48: .getDefaultFactory().getLogger("MANDARAX.KB");
49: public static final Logger LOG_KB_ADD = LoggerFactory
50: .getDefaultFactory().getLogger("MANDARAX.KB.ADD");
51: public static final Logger LOG_KB_REMOVE = LoggerFactory
52: .getDefaultFactory().getLogger("MANDARAX.KB.REMOVE");
53: public static final Logger LOG_KB_EVENT = LoggerFactory
54: .getDefaultFactory().getLogger("MANDARAX.KB.EVENT");
55: public static final Logger LOG_KB_MOVE = LoggerFactory
56: .getDefaultFactory().getLogger("MANDARAX.KB.MOVE");
57:
58: // Logger for test cases
59: public static final Logger LOG_VALIDATION = LoggerFactory
60: .getDefaultFactory().getLogger("MANDARAX.VALIDATION");
61:
62: // Logger for test cases
63: public static final Logger LOG_TEST = LoggerFactory
64: .getDefaultFactory().getLogger("MANDARAX.TESTS");
65:
66: // Logger for SQL integration
67: public static final Logger LOG_SQL = LoggerFactory
68: .getDefaultFactory().getLogger("MANDARAX.SQL");
69:
70: // Logger for RDF integration
71: public static final Logger LOG_RDF = LoggerFactory
72: .getDefaultFactory().getLogger("MANDARAX.RDF");
73:
74: // Logger for the logic factory
75: public static final Logger LOG_LFACTORY = LoggerFactory
76: .getDefaultFactory().getLogger("MANDARAX.LF");
77:
78: // Categories for XKB / ZKB xml interfaces
79: public static final Logger LOG_XKB = LoggerFactory
80: .getDefaultFactory().getLogger("MANDARAX.XKB");
81: public static final Logger LOG_ZKB = LoggerFactory
82: .getDefaultFactory().getLogger("MANDARAX.ZKB");
83:
84: // Categories for general purpose serialization
85: public static final Logger LOG_SER_XML = LoggerFactory
86: .getDefaultFactory().getLogger("MANDARAX.SERIAL.XML");
87: public static final Logger LOG_SER_BIN = LoggerFactory
88: .getDefaultFactory().getLogger("MANDARAX.SERIAL.BIN");
89:
90: // Categories for JDBC
91: public static final Logger LOG_JDBC = LoggerFactory
92: .getDefaultFactory().getLogger("MANDARAX.JDBC");
93: }
|