[api] Expose `timestamp` property

This commit is contained in:
indexzero 2011-09-11 19:57:01 -04:00
Родитель 14277aaae1
Коммит 5079bbcae1
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -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