Options
All
  • Public
  • Public/Protected
  • All
Menu

Class LogLevelCliContribution

Parses command line switches related to log levels, then watches the log levels file (if specified) for changes. This is the source of truth for what the log level per logger should be.

Hierarchy

  • LogLevelCliContribution

Implements

Index

Constructors

Properties

_defaultLogLevel: LogLevel = LogLevel.INFO

Log level to use for loggers not specified in logLevels.

_logLevels: LogLevels = {}
logConfigChangedEvent: Emitter<void> = ...

Accessors

  • get onLogConfigChanged(): Event<void>

Methods

  • configure(conf: Argv<{}>): void
  • logLevelFor(loggerName: string): LogLevel
  • readLogLevelString(levelStr: string, errMessagePrefix: string): LogLevel
  • setArguments(args: {}): Promise<void>
  • slurpLogConfigFile(filename: string): Promise<void>
  • watchLogConfigFile(filename: string): Promise<void>