Skip to content

Commit

Permalink
[api] Expose timestamp property
Browse files Browse the repository at this point in the history
  • Loading branch information
indexzero committed Sep 11, 2011
1 parent 14277aa commit 5079bbc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/winston-mongodb.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ MongoDB.prototype.log = function (level, msg, meta, callback) {
self.emit('error', err);
}

var entry = {
var entry = {
timestamp: new Date(), // RFC3339/ISO8601 format instead of common.timestamp()
level: level,
message: msg,
meta: meta
Expand Down

0 comments on commit 5079bbc

Please sign in to comment.