@cto.af/log - v1.2.1
    Preparing search index...

    Interface CtoLogOptions

    interface CtoLogOptions {
        log?: null | Logger;
        logFile?: null | string;
        logLevel?: number;
        mute?: boolean;
        prettyIgnore?: string;
        sync?: boolean;
    }
    Index

    Properties

    log?: null | Logger

    Log instance, created by the first layer to call createLog. Alternative to getLog for times when multiple loggers are needed.

    logFile?: null | string

    If a string, create this log file and write to it.

    logLevel?: number

    Increase (or decrease if negative) log verbosity by this much. -3: fatal, -2: error, -1: warn, 0: info, 1: debug, 2: trace. Useful for -qqqvvvv option processing. Default: 0.

    mute?: boolean

    If true, do not log to stdout.

    prettyIgnore?: string

    Ignore this set of comma-separated fields when pretty printing logs to stdout. Default: 'pid,hostname,name,host,port'.

    sync?: boolean

    If logFile is set, write synchronously if true (for testing).