@intisy/bayonet
    Preparing search index...

    Interface Logger

    Where a component writes what happened.

    The host decides where the lines go, whether they mirror to a console, and how they are attributed, so a component never opens a log file itself.

    interface Logger {
        debug(message: string): void;
        error(message: string): void;
        error(message: string, cause: unknown): void;
        info(message: string): void;
        warn(message: string): void;
    }
    Index
    • Detail only useful while debugging.

      Parameters

      • message: string

        the line to log

      Returns void

    • Something that failed.

      Parameters

      • message: string

        the line to log

      Returns void

    • Something that failed, with the cause.

      Parameters

      • message: string

        the line to log

      • cause: unknown

        the failure, logged alongside the message

      Returns void

    • Normal operation.

      Parameters

      • message: string

        the line to log

      Returns void

    • Something unexpected that did not stop the operation.

      Parameters

      • message: string

        the line to log

      Returns void