indexzero/winston-mongodb — pull request #26 by diosney (2014-02-10 18:38:05+00:00)
Title: [api] Added new [query & stream] option:

- To let users specify if they want the `_id`s included.
- The corresponding documentation.

I know this PR can generate a lot of hate but here it goes.

This PR is for add an option to let users receive the mongdb `_ids` related to the logs.

I found a [commit](ee96d20b677ef27b990b3366522f377dcf34771a) were this feature was explicitely removed but it is really useful (I need to uniquelly identify logs!), so please, can you consider adding this?

I tried to find a workaround to this by treating `timestamp`s like ids, but they clashed and got repeated due simultaneosly event logging making this path inviable.

I left the default behaviour intact, so if the options is not specified it will remove all ids.

I also added this feature to `query` and `stream` for uniformity, but I needed it only in `query`.

Also added the docs to this options.

Hope you like it and got merged.