Logger defines the logging interface that Echo uses internally in few places. For logging in handlers use your own logger instance (dependency injected or package/public variable) from logging framework of your choice.

Hierarchy

  • Logger

Indexable

[key: string]: any

Methods

Methods

  • Error logs the error

    Parameters

    • err: Error

    Returns void

  • Write provides writer interface for http.Server ErrorLog and for logging startup messages. http.Server.ErrorLog logs errors from accepting connections, unexpected behavior from handlers, and underlying FileSystem errors. logger middleware will use this method to write its JSON payload.

    Parameters

    • p: string | number[]

    Returns number

Generated using TypeDoc