indexzero/winston-mongodb — pull request #2 by dhendo (2011-11-03 12:10:21+00:00)
Title: Added a formatter option

Added a formatter option to allow the shape of the MongoDB log entry to be changed.

options.formatter = function(level, msg, meta) {
return {
datetime: new Date(),
message: msg,
tag: meta.tag
};
}

This allows you to re-arrange and pull items out of the meta object to better fit your schema (handy if you have log entries coming in from elsewhere)