Implements

Constructors

Properties

client: Client<boolean>

The client that instantiated this logger

coloredTags: MyLogLevelTags = coloredTags
combinedLogging: boolean

Should there be a combined log file that holds everything?

consoleColors: __module = colors
consoleExecutionTime: ((hrtime) => string) = consoleExecutionTime

Type declaration

    • (hrtime): string
    • Parameters

      • hrtime: [number, number]

      Returns string

debugLogging: boolean

Should there be a debug log file?

errorLogging: boolean

Should there be an error log file?

fileLogger: Logger
fileLoggerEnabled: boolean
httpLogging: boolean

Should there be an http log file?

infoLogging: boolean

Should there be an info log file?

logLevelFromNumber: ((level) => "ERROR" | "WARN" | "INFO" | "HTTP" | "VERBOSE" | "DEBUG" | "SILLY" | "UNKNOWN") = logLevelFromNumber

Type declaration

    • (level): "ERROR" | "WARN" | "INFO" | "HTTP" | "VERBOSE" | "DEBUG" | "SILLY" | "UNKNOWN"
    • Parameters

      • level: number

      Returns "ERROR" | "WARN" | "INFO" | "HTTP" | "VERBOSE" | "DEBUG" | "SILLY" | "UNKNOWN"

logLevelTags: MyLogLevelTags = logLevelTags
longestTagLength: number = longestTagLength
myLogLevels: MyLogLevels = myLogLevels
padTag: ((tag) => string) = padTag

Type declaration

    • (tag): string
    • Parameters

      • tag: string

      Returns string

paddedTags: MyLogLevelTags = paddedTags
sillyLogging: boolean

Should there be a silly log file?

timestamp: (() => string) = timestamp

Type declaration

    • (): string
    • Returns string

verboseLogging: boolean

Should there be a verbose log file?

warnLogging: boolean

Should there be a warning log file?

_debug: ((...args) => void) = debug

Type declaration

    • (...args): void
    • Parameters

      • Rest ...args: unknown[]

      Returns void

_endLog: ((...args) => void) = endLog

Type declaration

    • (...args): void
    • Parameters

      • Rest ...args: unknown[]

      Returns void

_error: ((...args) => void) = error

Type declaration

    • (...args): void
    • Parameters

      • Rest ...args: unknown[]

      Returns void

_http: ((...args) => void) = http

Type declaration

    • (...args): void
    • Parameters

      • Rest ...args: unknown[]

      Returns void

_info: ((...args) => void) = info

Type declaration

    • (...args): void
    • Parameters

      • Rest ...args: unknown[]

      Returns void

_silly: ((...args) => void) = silly

Type declaration

    • (...args): void
    • Parameters

      • Rest ...args: unknown[]

      Returns void

_startLog: ((...args) => void) = startLog

Type declaration

    • (...args): void
    • Parameters

      • Rest ...args: unknown[]

      Returns void

_success: ((...args) => void) = success

Type declaration

    • (...args): void
    • Parameters

      • Rest ...args: unknown[]

      Returns void

_verbose: ((...args) => void) = verbose

Type declaration

    • (...args): void
    • Parameters

      • Rest ...args: unknown[]

      Returns void

_warn: ((...args) => void) = warn

Type declaration

    • (...args): void
    • Parameters

      • Rest ...args: unknown[]

      Returns void

Methods