1 package org.exoplatform.services.log; 2 3 import java.util.List ; 4 import java.util.Collection ; 5 import org.apache.commons.logging.Log; 6 7 11 12 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 clazz); 28 public Log getLog(String name); 29 public Collection getLogs() ; 30 31 public int getLogLevel(String name) throws Exception ; 32 public void setLogLevel(String name, int level, boolean recursive) throws Exception ; 33 34 public List getLogBuffer() ; 35 public List getErrorBuffer() ; 36 } 37 | Popular Tags |