File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -67,10 +67,27 @@ function configure(loggers, logDir) {
67
67
68
68
// Messages.
69
69
// Make custom levels and only File transports for messages.
70
- let msgLogger = loggers . add ( 'messages' , {
70
+ loggers . add ( 'messages' , {
71
+ levels : {
72
+ // Log none.
73
+ none : 0 ,
74
+ // All DATA msgs.
75
+ data : 1 ,
76
+ // All SET and DATA msgs.
77
+ set : 3 ,
78
+ // All SET, GET and DATA msgs.
79
+ get : 5 ,
80
+ // All SETUP, SET, GET and DATA msgs.
81
+ setup : 7 ,
82
+ // All messages, but **not** PLAYER_UPDATE, SERVERCOMMAND and ALERT.
83
+ game : 9 ,
84
+ // All messages.
85
+ all : 11
86
+ } ,
71
87
format : format . errors ( { stack : true } ) ,
72
88
transports : [
73
89
new transports . File ( {
90
+ level : 'all' ,
74
91
timestamp : true ,
75
92
maxsize : 1000000 ,
76
93
filename : path . join ( logDir , 'messages.log' )
You can’t perform that action at this time.
0 commit comments