Class GLoggerCallbackHolder
Constructors
Private constructor
- new GLoggerCallbackHolder(callbacks: { ERROR: any; LOG: any; SUCCESS: any; VERBOSE: any; WARN: any }): GLoggerCallbackHolder
-
Parameters
-
callbacks: { ERROR: any; LOG: any; SUCCESS: any; VERBOSE: any; WARN: any }
-
ERROR: function
- ERROR(message: unknown[], context?: string): void
-
Parameters
-
message: unknown[]
-
Optional context: string
Returns void
-
LOG: function
- LOG(message: unknown[], context?: string): void
-
Parameters
-
message: unknown[]
-
Optional context: string
Returns void
-
SUCCESS: function
- SUCCESS(message: unknown[], context?: string): void
-
Parameters
-
message: unknown[]
-
Optional context: string
Returns void
-
VERBOSE: function
- VERBOSE(message: unknown[], context?: string): void
-
Parameters
-
message: unknown[]
-
Optional context: string
Returns void
-
WARN: function
- WARN(message: unknown[], context?: string): void
-
Parameters
-
message: unknown[]
-
Optional context: string
Returns void
Methods
Static createArrayCallbacks
-
Parameters
-
array: unknown[]
-
options: { mapper?: any } = {}
-
mapper: function
- mapper(priority: GLoggerPriority, messages: unknown[], context?: string): unknown
-
Parameters
-
-
messages: unknown[]
-
Optional context: string
Returns unknown
Static createConsoleCallbacks