Options
All
  • Public
  • Public/Protected
  • All
Menu

Class LoggerManager

LoggerManager is a singleton class used to contain logger information.

Hierarchy

  • LoggerManager

Index

Constructors

constructor

Properties

Private console

console: Console

Private mIsLoggerInit

mIsLoggerInit: boolean = false

Private mLogInMemory

mLogInMemory: boolean = false

Private mMaxQueueSize

mMaxQueueSize: number

Private mQueuedMessages

mQueuedMessages: IQueuedMessage[] = []

Static Private Readonly DEFAULT_MAX_QUEUE_SIZE

DEFAULT_MAX_QUEUE_SIZE: 10000 = 10000

Static Private mInstance

mInstance: LoggerManager = null

Accessors

QueuedMessages

isLoggerInit

  • get isLoggerInit(): boolean
  • set isLoggerInit(status: boolean): void

logInMemory

  • get logInMemory(): boolean
  • set logInMemory(status: boolean): void

maxQueueSize

  • get maxQueueSize(): number
  • set maxQueueSize(size: number): void

Static instance

Methods

dumpQueuedMessages

  • dumpQueuedMessages(file: string): void

queueMessage

  • queueMessage(category: string, method: string, message: string): void
  • This function is responsible for gathering all of the input parameters and store them in the message queue array.

    New messages are to be stored at the top of the array instead of the bottom. This allow easy removing message from array while looping the array.

    Parameters

    • category: string

      logger category

    • method: string

      log method

    • message: string

      log message

    Returns void

Generated using TypeDoc