Skip to content

Commit

Permalink
msg -> message as property in messageFormatter
Browse files Browse the repository at this point in the history
  • Loading branch information
lazywithclass authored Apr 13, 2020
1 parent 276dcdf commit 747ae3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ This is the list of options you could pass as argument to `winston.add`:
* awsRegion
* awsOptions - `object`, params as per [docs](http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/CloudWatchLogs.html#constructor-property), values in `awsOptions` are overridden by any other if specified, run [this example](https://github.com/lazywithclass/winston-cloudwatch/blob/master/examples/simple-with-aws-options.js) to have a look
* jsonMessage - `boolean`, format the message as JSON
* messageFormatter - `function`, format the message the way you like. This function will receive a `log` object that has the following properties: `level`, `msg`, and `meta`, which are passed by winston to the `log` function (see [CustomLogger.prototype.log as an example](https://github.com/winstonjs/winston#adding-custom-transports))
* messageFormatter - `function`, format the message the way you like. This function will receive a `log` object that has the following properties: `level`, `message`, and `meta`, which are passed by winston to the `log` function (see [CustomLogger.prototype.log as an example](https://github.com/winstonjs/winston#adding-custom-transports))
* proxyServer - `String`, use `proxyServer` as proxy in httpOptions
* uploadRate - `Number`, how often logs have to be sent to AWS. Be careful of not hitting [AWS CloudWatch Logs limits](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/cloudwatch_limits_cwl.html), the default is 2000ms.
* errorHandler - `function`, invoked with an error object, if not provided the error is sent to `console.error`
Expand Down

0 comments on commit 747ae3c

Please sign in to comment.