Updated documentation
This commit is contained in:
Родитель
0ea09de5b6
Коммит
be59d78689
|
@ -28,12 +28,14 @@ The MongoDB transport takes the following options. 'db' is required:
|
|||
* __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.
|
||||
* __nativeParser:__ Boolean indicating if you want the driver to use native parser feature or not.
|
||||
* __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.
|
||||
* __username:__ The username to use when logging into MongoDB.
|
||||
* __password:__ The password to use when logging into MongoDB. If you don't supply a username and password it will not use MongoDB authentication.
|
||||
* __errorTimeout:__ Reconnect timeout upon connection error from Mongo, defaults to 10 seconds (10000).
|
||||
* __timeout:__ Timeout for keeping idle connection to Mongo alive, defaults to 10 seconds (10000).
|
||||
* __storeHost:__ Boolean indicating if you want to store machine hostname in logs entry, if set to true it populates MongoDB entry with 'hostname' field, which stores os.hostname() value.
|
||||
|
||||
*Metadata:* Logged as a native JSON object.
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче