Skip to content

Commit 8908be6

Browse files
BryanBryan
authored andcommitted
Describe lambda appender in README
1 parent a76e3bf commit 8908be6

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,21 @@
22

33
[![AWS CodeBuild](https://codebuild.us-east-1.amazonaws.com/badges?uuid=eyJlbmNyeXB0ZWREYXRhIjoiWXVHSTFxZHNGYnJ1SVM0LzZsdHEvU0ZIRlpYUUhvN2FJWm1kUE01dStHeGtuTmJQVmQrY2hKUXQxTEl6RmQzOUZUdlZNaWtLNmNhNHhFM3drRkRFamVvPSIsIml2UGFyYW1ldGVyU3BlYyI6IkRsWndGZFVsTUNBd1BIS3AiLCJtYXRlcmlhbFNldFNlcmlhbCI6MX0%3D&branch=master)](https://github.com/barchart/log4js-node-appenders)
44

5+
Assorted _appenders_ to be used with [log4js](https://github.com/log4js-node/log4js-node).
6+
7+
### Console Appender (for AWS Lambda)
8+
9+
A console appender that routes output to the correct ```console``` function, according to log level. This appender is useful for logging within an AWS Lambda function.
10+
11+
* TRACE -> ```console.trace```
12+
* DEBUG -> ```console.debug```
13+
* INFO -> ```console.log```
14+
* WARN -> ```console.warn```
15+
* ERROR -> ```console.error```
16+
* FATAL -> ```console.error```
17+
18+
**Example**
19+
20+
21+
522

0 commit comments

Comments
 (0)