Interface Log

Interface for logging functionality

interface Log {
    name: string;
    attachTransport(
        transportLogger: (logObj: ILogObj & ILogObjMeta) => void,
    ): void;
    debug(...args: unknown[]): undefined | ILogObj & ILogObjMeta;
    error(...args: unknown[]): undefined | ILogObj & ILogObjMeta;
    fatal(...args: unknown[]): undefined | ILogObj & ILogObjMeta;
    info(...args: unknown[]): undefined | ILogObj & ILogObjMeta;
    silly(...args: unknown[]): undefined | ILogObj & ILogObjMeta;
    trace(...args: unknown[]): undefined | ILogObj & ILogObjMeta;
    warn(...args: unknown[]): undefined | ILogObj & ILogObjMeta;
}
Hierarchy
  • Logger<ILogObj>
    • Log

Properties

name: string

Get logger name

Methods

  • Attach a transport for log output

    Parameters

    • transportLogger: (logObj: ILogObj & ILogObjMeta) => void

      Transport function

    Returns void

  • Log at debug level

    Parameters

    • ...args: unknown[]

    Returns undefined | ILogObj & ILogObjMeta

  • Log at error level

    Parameters

    • ...args: unknown[]

    Returns undefined | ILogObj & ILogObjMeta

  • Log at fatal level

    Parameters

    • ...args: unknown[]

    Returns undefined | ILogObj & ILogObjMeta

  • Log at info level

    Parameters

    • ...args: unknown[]

    Returns undefined | ILogObj & ILogObjMeta

  • Log at silly level

    Parameters

    • ...args: unknown[]

    Returns undefined | ILogObj & ILogObjMeta

  • Log at trace level

    Parameters

    • ...args: unknown[]

    Returns undefined | ILogObj & ILogObjMeta

  • Log at warn level

    Parameters

    • ...args: unknown[]

    Returns undefined | ILogObj & ILogObjMeta