All files / app/services/log/logLevel logLevel.ts

100% Statements 8/8
100% Branches 2/2
100% Functions 1/1
100% Lines 8/8

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25          1x   1x         1x   1x   1x   1x   1x   1x    
/**
 * Log levels. Used to distinguish between several types of log messages, order
 * by the severity of the underlying issue. If any level is logged, any log of a
 * higher level will also be logged.
 */
export enum LogLevel {
  /** All - everything is logged */
  All = 0,
  /**
   * Debug - used only for development {@link environment}. Log level should be
   * higher in production.
   */
  Debug = 1,
  /** Info - used for informative messages */
  Info = 2,
  /** Warn - used for light warnings or errors */
  Warn = 3,
  /** Error - used for serious errors */
  Error = 4,
  /** Fatal - used for errors that should stop the app immediatly */
  Fatal = 5,
  /** Off - used to disable all logs */
  Off = 6,
}