View Javadoc
1   package gboat2.base.core.logging;
2   
3   import gboat2.base.bridge.exception.DefaultBusinessNestedException;
4   
5   /**
6    * 日志服务接口
7    * @author zhangxj-a
8    * @author lism
9    * @author hemw
10   */
11  public interface IBusinessLogService {
12  
13  	/**
14  	 * debug
15  	 * @param businessLogEntry 业务实体
16  	 * @throws DefaultBusinessNestedException 抛出默认检查异常
17  	 */
18  	public void debug(BusinessLogEntry businessLogEntry) throws GboatLoggingException;
19  
20  	/**
21  	 * info
22  	 * @param businessLogEntry 业务实体
23  	 * @throws DefaultBusinessNestedException 抛出默认检查异常
24  	 */
25  	public void info(BusinessLogEntry businessLogEntry) throws GboatLoggingException;
26  
27  	/**
28  	 * warn
29  	 * @param businessLogEntry 业务实体
30  	 * @throws DefaultBusinessNestedException 抛出默认检查异常
31  	 */
32  	public void warn(BusinessLogEntry businessLogEntry) throws GboatLoggingException;
33  
34  	/**
35  	 * error
36  	 * @param businessLogEntry 业务实体
37  	 * @throws DefaultBusinessNestedException 抛出默认检查异常
38  	 */
39  	public void error(BusinessLogEntry businessLogEntry) throws GboatLoggingException;
40  
41      /**
42       * 记录日志
43       * @param level             日志级别
44       * @param operationType     操作类型,如新建,删除等
45       * @param operation         记录的操作内容
46       */
47      public void log(Level level, String operationType, String operation);
48      
49      /**
50       * 记录日志
51       * @param level             日志级别
52       * @param operationType     操作类型,如新建,删除等
53       * @param operation         记录的操作内容
54       * @param operationObject   操作的对象名称
55       */
56      public void log(Level level, String operationType, String operation, String operationObject);
57      
58      /**
59       * 记录日志
60       * @param level             日志级别
61       * @param operationType     操作类型,如新建,删除等
62       * @param operation         记录的操作内容
63       * @param operationObject   操作的对象名称
64       * @param memo              日志备注
65       */
66      public void log(Level level, String operationType, String operation, String operationObject, String memo);
67  
68  }