File tree 7 files changed +15
-11
lines changed
src/main/java/org/barcodeapi 7 files changed +15
-11
lines changed Original file line number Diff line number Diff line change 1
- # Override log directory
2
- LOG_DIR = logs
1
+ # Override default log directory (logs)
2
+ # LOG_DIR=logs
3
+
4
+ # Override default log name (server)
5
+ # LOG_NAME=server
3
6
4
7
# Enable debug logging
5
8
# LOG_DEBUG=on
Original file line number Diff line number Diff line change 95
95
<dependency >
96
96
<groupId >com.mclarkdev.tools</groupId >
97
97
<artifactId >libargs</artifactId >
98
- <version >1.2 </version >
98
+ <version >1.5.1 </version >
99
99
</dependency >
100
100
101
101
<dependency >
102
102
<groupId >com.mclarkdev.tools</groupId >
103
103
<artifactId >libmetrics</artifactId >
104
- <version >1.1.2 </version >
104
+ <version >1.5.1 </version >
105
105
</dependency >
106
106
107
107
<dependency >
108
108
<groupId >com.mclarkdev.tools</groupId >
109
109
<artifactId >liblog</artifactId >
110
- <version >1.4.2 </version >
110
+ <version >1.5.1 </version >
111
111
</dependency >
112
112
113
113
<dependency >
114
114
<groupId >com.mclarkdev.tools</groupId >
115
115
<artifactId >libloggelf</artifactId >
116
- <version >1.4.2 </version >
116
+ <version >1.5.1 </version >
117
117
</dependency >
118
118
119
119
<dependency >
120
120
<groupId >com.mclarkdev.tools</groupId >
121
121
<artifactId >libextras</artifactId >
122
- <version >1.2.3 </version >
122
+ <version >1.5.1 </version >
123
123
</dependency >
124
124
125
125
</dependencies >
Original file line number Diff line number Diff line change 40
40
*/
41
41
public class ServerLauncher {
42
42
43
- {
43
+ static {
44
44
LibLog ._logF ("Network logging: %s" , LibLogGELF .enabled ());
45
45
}
46
46
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ public BarcodeAPIHandler() {
31
31
"/128/$$@B$$@L$$@A$$@C$$@K$$@L$$@I$$@S$$@T$$@" ));
32
32
} catch (GenerationException e ) {
33
33
34
- throw LibLog ._clog ("E0789" , e ).asException ();
34
+ throw LibLog ._clog ("E0789" , e ).asException (IllegalStateException . class );
35
35
}
36
36
}
37
37
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ public static void reload() {
23
23
authlist = Files .readAllLines (Paths .get ("config/authlist.conf" ));
24
24
} catch (Exception e ) {
25
25
26
- throw LibLog ._clog ("E0799" ).asException ();
26
+ throw LibLog ._clog ("E0799" ).asException (IllegalStateException . class );
27
27
}
28
28
}
29
29
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ public static void reload() {
23
23
blacklist = Files .readAllLines (Paths .get ("config/blacklist.conf" ));
24
24
} catch (Exception e ) {
25
25
26
- throw LibLog ._clog ("E0798" ).asException ();
26
+ throw LibLog ._clog ("E0798" ).asException (IllegalStateException . class );
27
27
}
28
28
}
29
29
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ public abstract class RestHandler extends AbstractHandler {
29
29
private final boolean authRequired ;
30
30
31
31
public RestHandler (boolean authRequired ) {
32
+ LibMetrics .hitMethodRunCounter ();
32
33
33
34
// extract class name
34
35
String className = getClass ().getName ();
You can’t perform that action at this time.
0 commit comments