Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a25feea
commit 381d765
Showing
3 changed files
with
80 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Gelf = require('./gelf'); | ||
|
||
var gelf = new Gelf(null); | ||
|
||
var message = { | ||
"version": "1.0", | ||
"host": "www1", | ||
"short_message": "Short message", | ||
"full_message": "Backtrace here\n\nmore stuff", | ||
"timestamp": 1291899928.412, | ||
"level": 1, | ||
"facility": "payment-backend", | ||
"file": "/var/www/somefile.rb", | ||
"line": 356, | ||
"_user_id": 42, | ||
"_something_else": "foo" | ||
}; | ||
|
||
gelf.emit('gelf.message', message); |
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