-
-
Notifications
You must be signed in to change notification settings - Fork 10.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🛠 use Ignition for logging/errors (#7869)
no issue - we started implementing logging and error handling in Ghost - later we outsourced both into a module - use the module now in Ghost - this commit basically just removes the logging and error implementation and uses Ignition
- Loading branch information
1 parent
7cb57bf
commit 78eacb1
Showing
10 changed files
with
34 additions
and
732 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
var config = require('./config'), | ||
logging = require('ghost-ignition').logging; | ||
|
||
module.exports = logging({ | ||
env: config.get('env'), | ||
path: config.get('logging:path') || config.getContentPath('logs'), | ||
domain: config.get('url').replace(/[^\w]/gi, '_'), | ||
mode: config.get('logging:mode'), | ||
level: config.get('logging:level'), | ||
transports: config.get('logging:transports'), | ||
loggly: config.get('logging:loggly') | ||
}); |
Oops, something went wrong.