Takomo v7.4.3
    Preparing search index...

    Interface TkmLogger

    Logger.

    interface TkmLogger {
        logLevel: LogLevel;
        childLogger(name: string): TkmLogger;
        debug(...message: any[]): void;
        debugObject(message: string, obj: any): void;
        debugObject(message: string, obj: any, filterFn: (obj: any) => any): void;
        debugText(message: string, text: string | (() => string)): void;
        error(...message: any[]): void;
        info(...message: any[]): void;
        infoObject(message: string, obj: any): void;
        infoObject(message: string, obj: any, filterFn: (obj: any) => any): void;
        infoText(message: string, text: string | (() => string)): void;
        trace(...message: any[]): void;
        traceObject(message: string, obj: any): void;
        traceObject(message: string, obj: any, filterFn: (obj: any) => any): void;
        traceText(message: string, text: string | (() => string)): void;
        warn(...message: any[]): void;
        warnObject(message: string, obj: any): void;
        warnObject(message: string, obj: any, filterFn: (obj: any) => any): void;
        warnText(message: string, text: string | (() => string)): void;
    }
    Index

    Properties

    logLevel: LogLevel

    Methods

    • Log messages using debug level.

      Parameters

      • ...message: any[]

        Messages to log

      Returns void

    • Log formatted object using debug level.

      Parameters

      • message: string

        Message to log

      • obj: any

        Object to log

      Returns void

    • Log formatted object using debug level.

      Parameters

      • message: string

        Message to log

      • obj: any

        Object to log

      • filterFn: (obj: any) => any

        Function to filter the logged object

      Returns void

    • Log longer text using debug level.

      Parameters

      • message: string

        Message to log

      • text: string | (() => string)

        Text to log

      Returns void

    • Log messages using error level.

      Parameters

      • ...message: any[]

        Messages to log

      Returns void

    • Log messages using info level.

      Parameters

      • ...message: any[]

        Messages to log

      Returns void

    • Log formatted object using info level.

      Parameters

      • message: string

        Message to log

      • obj: any

        Object to log

      Returns void

    • Log formatted object using info level.

      Parameters

      • message: string

        Message to log

      • obj: any

        Object to log

      • filterFn: (obj: any) => any

        Function to filter the logged object

      Returns void

    • Log longer text using info level.

      Parameters

      • message: string

        Message to log

      • text: string | (() => string)

        Text to log

      Returns void

    • Log messages using trace level.

      Parameters

      • ...message: any[]

        Messages to log

      Returns void

    • Log formatted object using trace level.

      Parameters

      • message: string

        Message to log

      • obj: any

        Object to log

      Returns void

    • Log formatted object using trace level.

      Parameters

      • message: string

        Message to log

      • obj: any

        Object to log

      • filterFn: (obj: any) => any

        Function to filter the logged object

      Returns void

    • Log longer text using trace level.

      Parameters

      • message: string

        Message to log

      • text: string | (() => string)

        Text to log

      Returns void

    • Log messages using warn level.

      Parameters

      • ...message: any[]

        Messages to log

      Returns void

    • Log formatted object using warn level.

      Parameters

      • message: string

        Message to log

      • obj: any

        Object to log

      Returns void

    • Log formatted object using warn level.

      Parameters

      • message: string

        Message to log

      • obj: any

        Object to log

      • filterFn: (obj: any) => any

        Function to filter the logged object

      Returns void

    • Log longer text using warn level.

      Parameters

      • message: string

        Message to log

      • text: string | (() => string)

        Text to log

      Returns void