01: /*
02: * LIUS - Lucene Index Update and Search
03: * http://sourceforge.net/projects/lius/
04: *
05: * Copyright (c) 2005, Laval University Library. All rights reserved.
06: *
07: * This library is free software; you can redistribute it and/or
08: * modify it under the terms of the GNU Lesser General Public
09: * License as published by the Free Software Foundation; either
10: * version 2.1 of the License, or (at your option) any later version.
11: *
12: * This library is distributed in the hope that it will be useful,
13: * but WITHOUT ANY WARRANTY; without even the implied warranty of
14: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15: * Lesser General Public License for more details.
16: *
17: * You should have received a copy of the GNU Lesser General Public
18: * License along with this library; if not, write to the Free Software
19: * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20: */
21:
22: package ca.ulaval.bibl.lius;
23:
24: import org.apache.log4j.Level;
25: import org.apache.log4j.Logger;
26: import org.apache.log4j.PropertyConfigurator;
27:
28: /**
29: * <p>
30: * Title:
31: * </p>
32: * <p>
33: * Description:
34: * </p>
35: * <p>
36: * Copyright: Copyright (c) 2005
37: * </p>
38: * <p>
39: * Company:
40: * </p>
41: *
42: * @author non attribuable
43: * @version 1.0
44: */
45:
46: public class LiusLogger {
47: static Logger logger = Logger.getLogger("LiusLogger");
48:
49: public static void setLoggerConfigFile(String loggerConfigPath) {
50: PropertyConfigurator.configure(loggerConfigPath);
51: logger.setLevel(((Level) Level.ERROR));
52: }
53:
54: }
|