Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • SpacesLoggingService

Index

Constructors

constructor

  • Parameters

    • bowser: BowserService

    Returns SpacesLoggingService

Properties

Private _logLevel

_logLevel: number = 1

Private bowser

bowser: BowserService

Private browser

browser: string

Private criticalBackground

criticalBackground: string = "#F296A1"

Private criticalColor

criticalColor: string = "#000"

Private debugBackground

debugBackground: string = "#9EBABA"

Private debugColor

debugColor: string = "#FFF"

Private defaultBackground

defaultBackground: string = "#fff"

Private defaultColor

defaultColor: string = "#000"

Private errorBackground

errorBackground: string = "#F296A1"

Private errorColor

errorColor: string = "#FFF"

Private importantBackground

importantBackground: string = "#FF1493"

Private importantColor

importantColor: string = "#000"

Private infoBackground

infoBackground: string = "#CCC691"

Private infoColor

infoColor: string = "#000"

Private methodColors

methodColors: any

Private moduleColors

moduleColors: any

Private useColor

useColor: boolean = true

Private warnBackground

warnBackground: string = "#F5AD89"

Private warnColor

warnColor: string = "#000"

Accessors

logLevel

logLevel:

Methods

critical

  • critical(title: string, msg?: any, bg?: string, color?: string): void
  • Parameters

    • title: string
    • Default value msg: any = ""
    • Default value bg: string = this.defaultBackground
    • Default value color: string = this.defaultColor

    Returns void

criticalColors

  • criticalColors(background: string, color: string): void
  • Parameters

    • background: string
    • color: string

    Returns void

Private css

  • css(background: string, color: string): string
  • Parameters

    • background: string
    • color: string

    Returns string

debug

  • debug(title: string, msg?: any, bg?: string, color?: string): void
  • Parameters

    • title: string
    • Default value msg: any = ""
    • Default value bg: string = this.defaultBackground
    • Default value color: string = this.defaultColor

    Returns void

debugColors

  • debugColors(background: string, color: string): void
  • Parameters

    • background: string
    • color: string

    Returns void

disableColor

  • disableColor(): void
  • Returns void

error

  • error(title: string, msg?: any, bg?: string, color?: string): void
  • Parameters

    • title: string
    • Default value msg: any = ""
    • Default value bg: string = this.defaultBackground
    • Default value color: string = this.defaultColor

    Returns void

errorColors

  • errorColors(background: string, color: string): void
  • Parameters

    • background: string
    • color: string

    Returns void

Private getHeader

  • getHeader(logLine: string): string
  • Parameters

    • logLine: string

    Returns string

important

  • important(title: string, msg?: any, bg?: string, color?: string): void
  • Parameters

    • title: string
    • Default value msg: any = ""
    • Default value bg: string = this.defaultBackground
    • Default value color: string = this.defaultColor

    Returns void

importantColors

  • importantColors(background: string, color: string): void
  • Parameters

    • background: string
    • color: string

    Returns void

info

  • info(title: string, msg?: any, bg?: string, color?: string): void
  • Parameters

    • title: string
    • Default value msg: any = ""
    • Default value bg: string = this.defaultBackground
    • Default value color: string = this.defaultColor

    Returns void

infoColors

  • infoColors(background: string, color: string): void
  • Parameters

    • background: string
    • color: string

    Returns void

log

  • log(level: string, title: string, msg: any, bg?: string, color?: string, headerBg?: string, headerColor?: string, methodIndex?: any): void
  • Parameters

    • level: string
    • title: string
    • msg: any
    • Default value bg: string = "#fff"
    • Default value color: string = "#000"
    • Default value headerBg: string = "#fff"
    • Default value headerColor: string = "#000"
    • Default value methodIndex: any = undefined

    Returns void

methodColor

  • methodColor(background: string, color: string, methodName?: string): void
  • Parameters

    • background: string
    • color: string
    • Optional methodName: string

    Returns void

Private methodIndex

  • methodIndex(): number
  • Returns number

moduleColor

  • moduleColor(background: string, color: string, moduleName?: string): void
  • Parameters

    • background: string
    • color: string
    • Optional moduleName: string

    Returns void

ngOnInit

  • ngOnInit(): void
  • Returns void

Private parseLogLine

  • parseLogLine(logLine: string): any
  • Parameters

    • logLine: string

    Returns any

warn

  • warn(title: string, msg?: any, bg?: string, color?: string): void
  • Parameters

    • title: string
    • Default value msg: any = ""
    • Default value bg: string = this.defaultBackground
    • Default value color: string = this.defaultColor

    Returns void

warnColors

  • warnColors(background: string, color: string): void
  • Parameters

    • background: string
    • color: string

    Returns void

Object literals

Private levels

levels: object

critical

critical: number = 4

debug

debug: number = 0

error

error: number = 3

important

important: number = 5

info

info: number = 1

warn

warn: number = 2

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc