Cutwater

Cutwater

  • Docs
  • Help
  • GitHub

SimpleLayout

@codification/cutwater-logging > SimpleLayout

Class

Specifies a simple, default layout for logging messages of the following form:

TIMESTAMP - LOGGER_NAME - LEVEL - MESSAGE

Hierarchy

SimpleLayout

Implements

  • Layout

Properties

  • timestampFormat

Methods

  • format

Properties

timestampFormat

● timestampFormat: string = "YYYY-MM-DD HH:mm:ss,SSS"

Defined in SimpleLayout.ts:18

The format to be used for timestamps in this layout.


Methods

format

▸ format(event: LoggingEvent): string

Implementation of Layout.format

Defined in SimpleLayout.ts:20

Parameters:

NameType
eventLoggingEvent

Returns: string


  • Class
  • Hierarchy
  • Implements
    • Properties
    • Methods
  • Properties
    • timestampFormat
  • Methods
    • format
Cutwater
Docs
Getting Started
Community
Stack Overflow
More
GitHubStar
Copyright © 2019 Codification.org