Preparing search index...
The search index is not available
@ztimson/utils
@ztimson/utils
logger
Logger
Class Logger
Hierarchy (
view full
)
TypedEmitter
<
LoggerEvents
>
Logger
Index
Constructors
constructor
Properties
namespace?
LOG_
LEVEL
Methods
debug
emit
error
format
info
log
off
on
once
warn
emit
off
on
once
Constructors
constructor
new
Logger
(
namespace
?
)
:
Logger
Parameters
Optional
namespace
:
string
Returns
Logger
Properties
Optional
Readonly
namespace
namespace
?:
string
Static
LOG_
LEVEL
LOG_
LEVEL
:
LOG_LEVEL
= LOG_LEVEL.DEBUG
Methods
debug
debug
(
...
args
)
:
void
Parameters
Rest
...
args
:
any
[]
Returns
void
emit
emit
<
K
>
(
event
,
...
args
)
:
void
Type Parameters
K
extends
string
|
symbol
Parameters
event
:
K
Rest
...
args
:
Parameters
<
LoggerEvents
[
K
]
>
Returns
void
error
error
(
...
args
)
:
void
Parameters
Rest
...
args
:
any
[]
Returns
void
Protected
format
format
(
...
text
)
:
string
Parameters
Rest
...
text
:
any
[]
Returns
string
info
info
(
...
args
)
:
void
Parameters
Rest
...
args
:
any
[]
Returns
void
log
log
(
...
args
)
:
void
Parameters
Rest
...
args
:
any
[]
Returns
void
off
off
<
K
>
(
event
,
listener
)
:
void
Type Parameters
K
extends
string
|
symbol
=
string
Parameters
event
:
K
listener
:
LoggerEvents
[
K
]
Returns
void
on
on
<
K
>
(
event
,
listener
)
:
(
(
)
=>
void
)
Type Parameters
K
extends
string
|
symbol
=
string
Parameters
event
:
K
listener
:
LoggerEvents
[
K
]
Returns
(
(
)
=>
void
)
(
)
:
void
Returns
void
once
once
<
K
>
(
event
,
listener
?
)
:
Promise
<
any
>
Type Parameters
K
extends
string
|
symbol
=
string
Parameters
event
:
K
Optional
listener
:
LoggerEvents
[
K
]
Returns
Promise
<
any
>
warn
warn
(
...
args
)
:
void
Parameters
Rest
...
args
:
any
[]
Returns
void
Static
emit
emit
(
event
,
...
args
)
:
void
Parameters
event
:
any
Rest
...
args
:
any
[]
Returns
void
Static
off
off
(
event
,
listener
)
:
void
Parameters
event
:
any
listener
:
TypedListener
Returns
void
Static
on
on
(
event
,
listener
)
:
(
(
)
=>
void
)
Parameters
event
:
any
listener
:
TypedListener
Returns
(
(
)
=>
void
)
(
)
:
void
Returns
void
Static
once
once
(
event
,
listener
?
)
:
Promise
<
any
>
Parameters
event
:
any
Optional
listener
:
TypedListener
Returns
Promise
<
any
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
namespace
LOG_
LEVEL
Methods
debug
emit
error
format
info
log
off
on
once
warn
emit
off
on
once
@ztimson/utils
Loading...