Documentation
    Preparing search index...

    Represents a builder for a log entry

    Index

    Constructors

    Properties

    catastrophe: (...args: []) => ZLogEntryBuilder = ...

    Sets the log level to catastrophe.

    Type Declaration

    error: (...args: []) => ZLogEntryBuilder = ...

    Sets the log level to error.

    Type Declaration

    info: (...args: []) => ZLogEntryBuilder = ...

    Sets the log level to info.

    Type Declaration

    warning: (...args: []) => ZLogEntryBuilder = ...

    Sets the log level to warning.

    Type Declaration

    Methods

    • Sets the context of the entry.

      Parameters

      • ctx: string | undefined

        The entry context.

      Returns this

      This object.

    • Sets the message.

      Parameters

      • msg: string

        The message to log.

      Returns this

      This object.