mirror of
https://github.com/Dahlgren/arma-server-web-admin.git
synced 2024-08-30 17:22:10 +00:00
configurable log format
This commit is contained in:
parent
9326ee4c73
commit
a443c807e1
2
app.js
2
app.js
@ -19,7 +19,7 @@ setupBasicAuth(config, app)
|
||||
|
||||
app.use(bodyParser.json())
|
||||
app.use(bodyParser.urlencoded({ extended: false }))
|
||||
app.use(morgan('dev'))
|
||||
app.use(morgan(config.logFormat || 'dev'))
|
||||
app.use(serveStatic(path.join(__dirname, 'public')))
|
||||
|
||||
var logs = new Logs(config)
|
||||
|
@ -18,4 +18,5 @@ module.exports = {
|
||||
},
|
||||
prefix: "", // Prefix to all server names
|
||||
suffix: "", // Suffix to all server names
|
||||
logFormat: "dev", // expressjs/morgan log format
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user