-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathLoggerLevel.java
More file actions
40 lines (34 loc) · 827 Bytes
/
Copy pathLoggerLevel.java
File metadata and controls
40 lines (34 loc) · 827 Bytes
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
package javasabr.rlib.logger.api;
import lombok.AccessLevel;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import lombok.experimental.Accessors;
import lombok.experimental.FieldDefaults;
/**
* Enumeration of log levels.
*
* @since 10.0.0
*/
@Getter
@RequiredArgsConstructor
@Accessors(fluent = true)
@FieldDefaults(level = AccessLevel.PRIVATE, makeFinal = true)
public enum LoggerLevel {
TRACE("TRACE", " ", false, false),
DEBUG("DEBUG", " ", false, false),
INFO("INFO", " ", true, true),
WARNING("WARN", " ", true, true),
ERROR("ERROR", " ", true, true);
/**
* The number of log levels.
*/
public static final int LENGTH = values().length;
String title;
String offset;
boolean enabled;
boolean forceFlush;
@Override
public String toString() {
return title;
}
}