Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • LoggerManager

Index

Constructors

constructor

Properties

Static Private DEV_MODE

DEV_MODE: boolean = true

Static FIXED_WIDTH

FIXED_WIDTH: number = 0

Sets a fixed with for the module name. (0 if not set)

Static MUTE_ON_CREATE

MUTE_ON_CREATE: boolean = false

Mutes the log when created

Static STORAGE_KEY

STORAGE_KEY: string = 'typescript-logger-state'

Key used for the local storage settings

Static Private initializationBlock

initializationBlock: undefined = ...

Static Private instances

instances: {} = {}

Type declaration

Static Private instancesStateMap

instancesStateMap: {} = {}

Type declaration

Static Private levels

levels: Level[] = []

Methods

Static create

  • create(name: string, color?: string): Logger

Static Private getRandomColor

  • getRandomColor(): any

Static isLevelAllowed

  • isLevelAllowed(level: Level): boolean

Static isMuted

  • isMuted(moduleName: string): any

Static Private isPresent

  • isPresent(moduleName: string): boolean

Static isProductionMode

  • isProductionMode(): boolean

Static Private loadState

  • loadState(): void

Static mute

  • mute(moduleName: string, mute?: boolean): void
  • Parameters

    • moduleName: string
    • mute: boolean = true

    Returns void

Static muteAllModules

  • muteAllModules(): void

Static onlyLevels

  • onlyLevels(...levels: Level[]): void

Static onlyModules

  • onlyModules(...modules: string[]): void

Static Private saveState

  • saveState(): void

Static setProductionMode

  • setProductionMode(): void

Static showConfig

  • showConfig(): { levels: Level[]; modulesState: {} }

Static unMuteAllModules

  • unMuteAllModules(): void

Static unmute

  • unmute(moduleName: string): void

Generated using TypeDoc