map.apps Bundle APIs 4.20.0
    Preparing search index...

    Interface LogNotificationEntry

    A log message.

    interface LogNotificationEntry {
        bundle: Bundle;
        date: Date;
        error: any;
        get(name: string): any;
        getLevelAsString(): string;
        isDebug(): boolean;
        isError(): boolean;
        isInfo(): boolean;
        isWarning(): boolean;
        level: LogNotificationLevel;
        levels: LogNotificationLevels;
        message: string;
        shortInfo: string;
        time: number;
        [key: string]: any;
    }

    Indexable

    • [key: string]: any

      way to add additional information to a log entry

    Index

    Properties

    bundle: Bundle

    The bundle which has logged the message.

    date: Date

    Log time as date.

    error: any

    Error instance. If it was an log error.

    The log level.

    Access to the available levels.

    message: string

    The log message.

    shortInfo: string

    A short info.

    time: number

    Log time as milliseconds.

    Methods

    • Support for old stateful style.

      Parameters

      • name: string

        property name

      Returns any

      value of property

      use properties directly.

    • Returns the String representation of the LogLevel

      Returns string

    • Tests if entry has debug level.

      Returns boolean

    • Tests if entry has error level.

      Returns boolean

    • Tests if entry has info level.

      Returns boolean

    • Tests if entry has warning level.

      Returns boolean