Class OINOLogAbstract

Abstract base class for logging implementations supporting

  • error, warning, info and debug channels
  • setting level of logs outputted

Hierarchy (view full)

Constructors

  • Abstract logging method to implement the actual logging operation.

    Parameters

    • logLevel: OINOLogLevel = OINOLogLevel.warn

      level of the log events

    Returns OINOLog

Methods

  • Log debug event.

    Parameters

    • message: string

      message of the log event

    • Optional data: any

      structured data associated with the log event

    Returns void

  • Log error event.

    Parameters

    • message: string

      message of the log event

    • Optional data: any

      structured data associated with the log event

    Returns void

  • Log info event.

    Parameters

    • message: string

      message of the log event

    • Optional data: any

      structured data associated with the log event

    Returns void

  • Set log level.

    Parameters

    Returns void

  • Set active logger and log level.

    Parameters

    Returns void

  • Log warning event.

    Parameters

    • message: string

      message of the log event

    • Optional data: any

      structured data associated with the log event

    Returns void