Update readme
This commit is contained in:
Родитель
3614ebd38f
Коммит
23f0a6532f
|
@ -37,17 +37,19 @@ The [winston][0] codebase has been growing significantly with contributions and
|
|||
|
||||
The MongoDB transport takes the following options. 'db' is required:
|
||||
|
||||
* __level:__ Level of messages that this transport should log.
|
||||
* __silent:__ Boolean flag indicating whether to suppress output.
|
||||
* __level:__ Level of messages that this transport should log, defaults to 'info'.
|
||||
* __silent:__ Boolean flag indicating whether to suppress output, defaults to false.
|
||||
* __db:__ The name of the database you want to log to. *[required]*
|
||||
* __collection__: The name of the collection you want to store log messages in, defaults to 'log'.
|
||||
* __safe:__ Boolean indicating if you want eventual consistency on your log messages, if set to true it requires an extra round trip to the server to ensure the write was committed, defaults to true.
|
||||
* __host:__ The host running MongoDB, defaults to localhost.
|
||||
* __port:__ The port on the host that MongoDB is running on, defaults to MongoDB's default port.
|
||||
* __errortimeout:__ Reconnect timeout upon connection error from Mongo, defaults to 10 seconds (10000).
|
||||
* __timeoout:__ Timeout for keeping idle connection to Mongo alive, defaults to 10 seconds (10000).
|
||||
|
||||
*Metadata:* Logged as a native JSON object.
|
||||
|
||||
#### Author: [Charlie Robbins](http://blog.nodejitsu.com)
|
||||
#### Contributors: [Kendrick Taylor](https://github.com/sktaylor)
|
||||
#### Contributors: [Kendrick Taylor](https://github.com/sktaylor) [Yosef Dinerstein](https://github.com/yosefd)
|
||||
|
||||
[0]: https://github.com/indexzero/winston
|
Загрузка…
Ссылка в новой задаче