zendframework/zf2 — pull request #1825 by jmikola (2012-07-09 21:14:20+00:00)
Title: Added MongoDB log writer

This is my first PR, so feel free to scrutinize this thoroughly.

While implementing this, I had a question about the `$event` arguments for the `write()` method. Are all of the values either scalars or an array of scalars? I'm assuming that based on the DB writer's `mapEventIntoColumn()` and `eventIntoColumn()` methods, as array values are handled specially (but only one level in). This obviously isn't a problem for Mongo, although I was curious if objects or other types might end up in `$event` and could benefit from special processing (e.g. converting DateTime instances to MongoDates).