Class for creating Fastly Named Loggers.

Note: Can only be used when processing requests, not during build-time initialization.

Example

In this example we have a create a logger named 'splunk' and logs the incoming request method and destination.

Hierarchy

  • Logger

Constructors

Methods

Constructors

  • Creates a new Logger instance for the given named log endpoint.

    Note: Can only be used when processing requests, not during build-time initialization.

    Parameters

    • name: string

    Returns Logger

Methods

  • Send the given message, converted to a string, to this Logger instance's endpoint

    Parameters

    • message: any

    Returns void

Generated using TypeDoc