Class Logger

Hierarchy

  • Logger

Index

Properties

Static Private browserDocumentWrite

browserDocumentWrite: boolean = false

Static Private checkFileSizeTimer

checkFileSizeTimer: any = null

Static currentDebugLevel

currentDebugLevel: number = Logger.level.warn

Static Private fs

fs: any

Static Private maxFileSize

maxFileSize: number = 1000000

Static Private nodeServer

nodeServer: any = undefined

Static Private prefix

prefix: string = ""

Static Private serverLogFilename

serverLogFilename: any = null

Static Private serverLogFilenamePrefix

serverLogFilenamePrefix: any = null

Static Private serverLogging

serverLogging: boolean = true

Static Private showInBrowserConsole

showInBrowserConsole: boolean = true

Static Private timerLogging

timerLogging: boolean = false

Methods

Static Private checkFileSize

  • checkFileSize(): void
  • Returns void

Static Private dateFormat

  • dateFormat(date: any, fstr: any): any
  • Parameters

    • date: any
    • fstr: any

    Returns any

Static debug

  • debug(str: number): any
  • debug(str: string): any
  • Parameters

    • str: number

    Returns any

  • Parameters

    • str: string

    Returns any

Static enableBrowserConsole

  • enableBrowserConsole(state: boolean): void
  • Parameters

    • state: boolean

    Returns void

Static enableBrowserDocumentWrite

  • enableBrowserDocumentWrite(state: boolean): void
  • Parameters

    • state: boolean

    Returns void

Static enableServerLogging

  • enableServerLogging(state: boolean): void
  • Parameters

    • state: boolean

    Returns void

Static error

  • error(str: number): any
  • error(str: string): any
  • Parameters

    • str: number

    Returns any

  • Parameters

    • str: string

    Returns any

Static info

  • info(str: number): any
  • info(str: string): any
  • Parameters

    • str: number

    Returns any

  • Parameters

    • str: string

    Returns any

Static Private init

  • init(nodeServer: any): void
  • This should ONLY be called from foviaAPI.ts when the client gets connected to the Node.js server

    Parameters

    • nodeServer: any

    Returns void

Static printClientLog

  • printClientLog(str: string): void
  • Parameters

    • str: string

    Returns void

Static setDebugLevel

  • setDebugLevel(level: number): void
  • Parameters

    • level: number

    Returns void

Static setPrefix

  • setPrefix(prefix: string): void
  • Parameters

    • prefix: string

    Returns void

Static setServerLog

  • setServerLog(fs: any, serverLogFilenamePrefix: any, maxFileSize?: number): void
  • Parameters

    • fs: any
    • serverLogFilenamePrefix: any
    • Default value maxFileSize: number = 1000000

    Returns void

Static setTimerLogging

  • setTimerLogging(enable: boolean): void
  • Parameters

    • enable: boolean

    Returns void

Static timer

  • timer(str: number): any
  • timer(str: string): any
  • Parameters

    • str: number

    Returns any

  • Parameters

    • str: string

    Returns any

Static warn

  • warn(str: number): any
  • warn(str: string): any
  • Parameters

    • str: number

    Returns any

  • Parameters

    • str: string

    Returns any

Object literals

Static level

level: object

debug

debug: number = 0

error

error: number = 3

info

info: number = 1

warn

warn: number = 2