Class JLogger

Json Logger objact. Do not use this class directly; always create an instance of JLogger using LoggerFactory

Hierarchy

  • JLogger

Constructors

Properties

Methods

Constructors

Properties

logLevel?: LogLevel

Methods

  • The main logging method that actually write to the log. The objective is to allow caller to pass only Error object as a log, as well as supporting the case where a log contains both the message and Error object. The message attribute must never be undefined.

    Parameters

    Returns void

  • If a async destination based on AbstractAsyncLogDestination exists, use this method to wait for last log call complete.

    Returns

    Parameters

    • maxRetry: number = 20

      number of time to retry. Default to retry for 20 times.

    Returns Promise<void>

Generated using TypeDoc