Repository navigation
Expand file tree
/
Copy pathLogger.java
More file actions
91 lines (80 loc) · 2.21 KB
/
Copy pathLogger.java
File metadata and controls
91 lines (80 loc) · 2.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
package com.bj58.argo.logs;
/**
* Log日志接口
*
* @author Service Platform Architecture Team (spat@58.com)
*/
public interface Logger {
/**
* Log a message at the DEBUG level.
*
* @param msg the message string to be logged.
*/
void debug(String msg);
/**
* Log a message at the DEBUG level according to the specified format
* and argument.
* <p/>
* <p>This form avoids superfluous object creation when the logger
* is disabled for the DEBUG level. </p>
*
* @param format the format string
* @param arg the argument
*/
public void debug(String format, Object arg);
/**
* Log an exception at the DEBUG level with an accompanying message.
*
* @param msg the message accompanying the exception
* @param t the exception to be logged
*/
void debug(String msg, Throwable t);
/**
* Log a message at the INFO level.
*
* @param msg the message string to be logged
*/
void info(String msg);
/**
* Log a message at the INFO level according to the specified format
* and argument.
* <p/>
* <p>This form avoids superfluous object creation when the logger
* is disabled for the INFO level. </p>
*
* @param format the format string
* @param arg the argument
*/
public void info(String format, Object arg);
/**
* Log an exception at the INFO level with an accompanying message.
*
* @param msg the message accompanying the exception
* @param t the exception to be logged
*/
void info(String msg, Throwable t);
/**
* Log a message at the ERROR level.
*
* @param msg the message string to be logged
*/
void error(String msg);
/**
* Log an exception at the ERROR level.
*
* @param msg the message accompanying the exception
* @param t the exception to log
*/
void error(String msg, Throwable t);
/**
* Log a message at the ERROR level according to the specified format
* and argument.
* <p/>
* <p>This form avoids superfluous object creation when the logger
* is disabled for the ERROR level. </p>
*
* @param format the format string
* @param arg the argument
*/
public void error(String format, Object arg);
}