ConsoleAppender
@codification/cutwater-logging > ConsoleAppender
Class
The default Appender implementation that writes all LoggingEvents to console.log()
.
Hierarchy
ConsoleAppender
Implements
Constructors
Properties
Methods
Constructors
constructor
⊕ new ConsoleAppender(name?: string
, layout?: Layout): ConsoleAppender
Defined in ConsoleAppender.ts:19
Creates a new console
based Appender.
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
Default value name | string | "console" | The name of this appender. |
Default value layout | Layout | new SimpleLayout() | The layout to use for received logging events. |
Returns: ConsoleAppender
Properties
layout
● layout: Layout
Implementation of Appender.layout
Defined in ConsoleAppender.ts:19
readonly:
name
● name: string
Implementation of Appender.name
Defined in ConsoleAppender.ts:14
readonly:
Methods
doAppend
▸ doAppend(event: LoggingEvent): void
Implementation of Appender.doAppend
Defined in ConsoleAppender.ts:32
Parameters:
Name | Type |
---|---|
event | LoggingEvent |
Returns: void