Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 422 Bytes

stdout.md

File metadata and controls

16 lines (12 loc) · 422 Bytes

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

Example

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