Search
Preparing search index...
The search index is not available
gtools
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
gtools
components/logger/g-logger
GLogger
Class GLogger
Hierarchy
GLoggerInstance
GLogger
Index
Constructors
constructor
Properties
context
logger
Callbacks
skip
Contexts
skip
Regexp
static
Callbacks
Methods
error
extends
log
set
Log
Callback
set
Log
Callbacks
warn
create
Array
Logger
create
Class
Logger
error
get
Context
String
get
Line
local
Print
log
print
set
Callbacks
warn
Constructors
constructor
new GLogger
(
context
?:
GLoggerContextType
, callbacks
?:
GLoggerCallbackHolder
)
:
GLogger
Parameters
Optional
context:
GLoggerContextType
callbacks:
GLoggerCallbackHolder
= ...
Returns
GLogger
Properties
Optional
Readonly
context
context
:
GLoggerContextType
Protected
Readonly
logger
Callbacks
logger
Callbacks
:
GLoggerCallbackHolder
Static
Private
Readonly
skip
Contexts
skip
Contexts
:
string
[]
= ...
Static
Private
Readonly
skip
Regexp
skip
Regexp
:
RegExp
= ...
Static
Private
Readonly
static
Callbacks
static
Callbacks
:
GLoggerCallbackHolder
= ...
Methods
error
error
(
...
messages
:
unknown
[]
)
:
void
Parameters
Rest
...
messages:
unknown
[]
Returns
void
extends
extends
(
subContext
:
any
)
:
GLogger
Parameters
subContext:
any
Returns
GLogger
log
log
(
...
messages
:
unknown
[]
)
:
void
Parameters
Rest
...
messages:
unknown
[]
Returns
void
set
Log
Callback
set
Log
Callback
(
priority
:
GLoggerPriority
, callback
:
GLoggerCallback
)
:
void
Parameters
priority:
GLoggerPriority
callback:
GLoggerCallback
Returns
void
set
Log
Callbacks
set
Log
Callbacks
(
callbackHolder
:
GLoggerCallbackHolder
)
:
void
Parameters
callbackHolder:
GLoggerCallbackHolder
Returns
void
warn
warn
(
...
messages
:
unknown
[]
)
:
void
Parameters
Rest
...
messages:
unknown
[]
Returns
void
Static
create
Array
Logger
create
Array
Logger
(
array
:
unknown
[]
, context
?:
GLoggerContextType
, mapper
?:
(
priority
:
GLoggerPriority
, messages
:
unknown
[]
, context
?:
string
)
=>
unknown
)
:
GLogger
Parameters
array:
unknown
[]
Optional
context:
GLoggerContextType
Optional
mapper:
(
priority
:
GLoggerPriority
, messages
:
unknown
[]
, context
?:
string
)
=>
unknown
(
priority
:
GLoggerPriority
, messages
:
unknown
[]
, context
?:
string
)
:
unknown
Parameters
priority:
GLoggerPriority
messages:
unknown
[]
Optional
context:
string
Returns
unknown
Returns
GLogger
Static
create
Class
Logger
create
Class
Logger
(
context
:
any
, parent
?:
GLogger
)
:
GLogger
Parameters
context:
any
Optional
parent:
GLogger
Returns
GLogger
Static
error
error
(
message
:
string
|
string
[]
, context
?:
GLoggerContextType
)
:
void
Parameters
message:
string
|
string
[]
Optional
context:
GLoggerContextType
Returns
void
Static
Protected
get
Context
String
get
Context
String
(
context
?:
GLoggerContextType
)
:
string
Parameters
Optional
context:
GLoggerContextType
Returns
string
Static
get
Line
get
Line
(
steps
?:
number
)
:
string
Parameters
steps:
number
= 2
Returns
string
Static
Protected
local
Print
local
Print
(
type
:
GLoggerPriority
, data
:
unknown
[]
, callbacks
:
GLoggerCallbackHolder
, context
?:
string
)
:
void
Parameters
type:
GLoggerPriority
data:
unknown
[]
callbacks:
GLoggerCallbackHolder
Optional
context:
string
Returns
void
Static
log
log
(
message
:
string
|
string
[]
, context
?:
GLoggerContextType
)
:
void
Parameters
message:
string
|
string
[]
Optional
context:
GLoggerContextType
Returns
void
Static
print
print
(
type
:
GLoggerPriority
, context
?:
GLoggerContextType
,
...
data
:
unknown
[]
)
:
void
Parameters
type:
GLoggerPriority
context:
GLoggerContextType
= ""
Rest
...
data:
unknown
[]
Returns
void
Static
set
Callbacks
set
Callbacks
(
callbackHolder
:
GLoggerCallbackHolder
)
:
void
Parameters
callbackHolder:
GLoggerCallbackHolder
Returns
void
Static
warn
warn
(
message
:
string
|
string
[]
, context
?:
GLoggerContextType
)
:
void
Parameters
message:
string
|
string
[]
Optional
context:
GLoggerContextType
Returns
void
Modules
components/logger/g-
logger
GLogger
constructor
context
logger
Callbacks
skip
Contexts
skip
Regexp
static
Callbacks
error
extends
log
set
Log
Callback
set
Log
Callbacks
warn
create
Array
Logger
create
Class
Logger
error
get
Context
String
get
Line
local
Print
log
print
set
Callbacks
warn
GLogger
Formatter
GLogger
Callback
GLogger
Context
Type
Generated using
TypeDoc