KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > services > log > LogService


1 package org.exoplatform.services.log;
2
3 import java.util.List JavaDoc ;
4 import java.util.Collection JavaDoc ;
5 import org.apache.commons.logging.Log;
6
7 /**
8  * Copyright 2001-2003 The eXo platform SARL All rights reserved.
9  * Please look at license.txt in info directory for more license detail.
10  **/

11
12 /**
13  * Created by the Exo Development team.
14  * Author : Mestrallet Benjamin
15  * benjmestrallet@users.sourceforge.net
16  * Date: 14 nov. 2003
17  * Time: 20:19:45
18  */

19 public interface LogService {
20     final static public int FATAL = 0 ;
21   final static public int ERROR = 1 ;
22   final static public int WARN = 2 ;
23   final static public int INFO = 3 ;
24   final static public int DEBUG = 4 ;
25   final static public int TRACE = 5 ;
26
27   public Log getLog(Class JavaDoc clazz);
28   public Log getLog(String JavaDoc name);
29   public Collection JavaDoc getLogs() ;
30     
31   public int getLogLevel(String JavaDoc name) throws Exception JavaDoc ;
32   public void setLogLevel(String JavaDoc name, int level, boolean recursive) throws Exception JavaDoc ;
33   
34   public List JavaDoc getLogBuffer() ;
35   public List JavaDoc getErrorBuffer() ;
36 }
37
Popular Tags