mirror of https://github.com/Requarks/wiki.git
NGPixel
8 years ago
10 changed files with 112 additions and 72 deletions
Unified View
Diff Options
-
12agent.js
-
2assets/js/app.js
-
28client/js/components/editor-image.js
-
18lib/winston.js
-
1models/config.js
-
22models/git.js
-
64models/localdata.js
-
14server.js
-
5views/modals/editor-image.pug
-
18ws-server.js
2
assets/js/app.js
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -0,0 +1,18 @@ |
|||||
|
"use strict"; |
||||
|
|
||||
|
var winston = require('winston'); |
||||
|
|
||||
|
module.exports = (isDebug) => { |
||||
|
|
||||
|
winston.remove(winston.transports.Console) |
||||
|
winston.add(winston.transports.Console, { |
||||
|
level: (isDebug) ? 'info' : 'warn', |
||||
|
prettyPrint: true, |
||||
|
colorize: true, |
||||
|
silent: false, |
||||
|
timestamp: true |
||||
|
}); |
||||
|
|
||||
|
return winston; |
||||
|
|
||||
|
}; |
Write
Preview
Loading…
Cancel
Save