Skip to content

Commit

Permalink
Make console logging level configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
joelpurra committed Jun 30, 2015
1 parent dd7dad8 commit 86a01eb
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 13 deletions.
22 changes: 11 additions & 11 deletions app/web.js
Expand Up @@ -27,20 +27,20 @@ var configuration = require("configvention"),
//
{
type: "stream",
level: "trace",
level: configuration.get("logging:level") || "trace",
stream: process.stdout
},
//
{
type: "rotating-file",
// TODO: use path from configuration so that there's one log path per app.
path: "ftrf-web.log",
// Daily rotation.
period: "1d",
// Keep three files.
count: 3,
level: "trace",
},
// {
// type: "rotating-file",
// // TODO: use path from configuration so that there's one log path per app.
// path: "ftrf-web.log",
// // Daily rotation.
// period: "1d",
// // Keep three files.
// count: 3,
// level: "trace",
// },
//
],
},
Expand Down
7 changes: 5 additions & 2 deletions app/web.js.defaults.config.json
@@ -1,9 +1,12 @@
{
"name": "web",
"name": "web",
"http-server-port": 5000,
"site-root": "public/",
"enable-hsts": false,
"redirect-to-https": false,
"http-url-root": "http://ftrf.example.com",
"https-url-root": "https://ftrf.example.com"
"https-url-root": "https://ftrf.example.com",
"logging": {
"level": "warn"
}
}

0 comments on commit 86a01eb

Please sign in to comment.