File tree 2 files changed +8
-14
lines changed
2 files changed +8
-14
lines changed Original file line number Diff line number Diff line change 10
10
},
11
11
"scheduledCommands" :[" !youtube" , " !schedule" ],
12
12
"logger" : {
13
- "logToFile " : false
13
+ "level " : " debug "
14
14
},
15
15
"overRustle" : {
16
16
"url" : " https://overrustlelogs.net"
Original file line number Diff line number Diff line change @@ -3,19 +3,13 @@ const bunyan = require('bunyan');
3
3
function configureLogger ( config ) {
4
4
const bunyanConf = { name : 'dggChatBot' } ;
5
5
6
- if ( config . logToFile ) {
7
- bunyanConf . streams = [
8
- {
9
- level : 'info' ,
10
- stream : process . stdout , // log INFO and above to stdout
11
- } ,
12
- {
13
- level : config . level ,
14
- path : `${ __dirname } ../logs/errors.logs` , // log ERROR and above to a file
15
- } ,
16
- ] ;
17
- }
18
-
6
+ bunyanConf . streams = [
7
+ {
8
+ level : config . level ,
9
+ stream : process . stdout , // log INFO and above to stdout
10
+ }
11
+ ] ;
12
+
19
13
return bunyan . createLogger ( bunyanConf ) ;
20
14
}
21
15
You can’t perform that action at this time.
0 commit comments