File: stdout.md

package info (click to toggle)
node-log4js 6.9.1%2B~cs8.4.19-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,468 kB
  • sloc: javascript: 12,965; makefile: 5
file content (17 lines) | stat: -rw-r--r-- 422 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Standard Output Appender

This appender writes all log events to the standard output stream. It is the default appender for log4js.

# Configuration

- `type` - `stdout`
- `layout` - `object` (optional, defaults to colouredLayout) - see [layouts](layouts.md)

# Example

```javascript
log4js.configure({
  appenders: { out: { type: "stdout" } },
  categories: { default: { appenders: ["out"], level: "info" } },
});
```