Search
Preparing search index...
The search index is not available
@nestjs/core
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
Logger
Class Logger
Hierarchy
Logger
Implements
LoggerService
Index
Constructors
constructor
Properties
context
is
Timestamp
Enabled
instance
last
Timestamp
log
Levels
Methods
call
Function
debug
error
get
Instance
is
Log
Level
Enabled
log
set
Context
verbose
warn
debug
error
log
override
Logger
print
Message
print
Stack
Trace
update
And
Get
Timestamp
Diff
verbose
warn
Constructors
constructor
new
Logger
(
context
?:
string
, isTimestampEnabled
?:
boolean
)
:
Logger
Parameters
Optional
context:
string
Default value
isTimestampEnabled:
boolean
= false
Returns
Logger
Properties
Protected
Optional
context
context
:
string
Private
Readonly
is
Timestamp
Enabled
is
Timestamp
Enabled
:
boolean
Static
Private
Optional
instance
instance
:
typeof
Logger
|
LoggerService
= Logger
Static
Private
Optional
last
Timestamp
last
Timestamp
:
number
Static
Private
log
Levels
log
Levels
:
LogLevel
[]
= ['log','error','warn','debug','verbose',]
Methods
Private
call
Function
call
Function
(
name
:
"log"
|
"warn"
|
"debug"
|
"verbose"
, message
:
any
, context
?:
string
)
:
void
Parameters
name:
"log"
|
"warn"
|
"debug"
|
"verbose"
message:
any
Optional
context:
string
Returns
void
debug
debug
(
message
:
any
, context
?:
string
)
:
void
Parameters
message:
any
Optional
context:
string
Returns
void
error
error
(
message
:
any
, trace
?:
string
, context
?:
string
)
:
void
Parameters
message:
any
Default value
trace:
string
= ""
Optional
context:
string
Returns
void
Private
get
Instance
get
Instance
(
)
:
typeof
Logger
|
LoggerService
Returns
typeof
Logger
|
LoggerService
Private
is
Log
Level
Enabled
is
Log
Level
Enabled
(
level
:
LogLevel
)
:
boolean
Parameters
level:
LogLevel
Returns
boolean
log
log
(
message
:
any
, context
?:
string
)
:
void
Parameters
message:
any
Optional
context:
string
Returns
void
set
Context
set
Context
(
context
:
string
)
:
void
Parameters
context:
string
Returns
void
verbose
verbose
(
message
:
any
, context
?:
string
)
:
void
Parameters
message:
any
Optional
context:
string
Returns
void
warn
warn
(
message
:
any
, context
?:
string
)
:
void
Parameters
message:
any
Optional
context:
string
Returns
void
Static
debug
debug
(
message
:
any
, context
?:
string
, isTimeDiffEnabled
?:
boolean
)
:
void
Parameters
message:
any
Default value
context:
string
= ""
Default value
isTimeDiffEnabled:
boolean
= true
Returns
void
Static
error
error
(
message
:
any
, trace
?:
string
, context
?:
string
, isTimeDiffEnabled
?:
boolean
)
:
void
Parameters
message:
any
Default value
trace:
string
= ""
Default value
context:
string
= ""
Default value
isTimeDiffEnabled:
boolean
= true
Returns
void
Static
log
log
(
message
:
any
, context
?:
string
, isTimeDiffEnabled
?:
boolean
)
:
void
Parameters
message:
any
Default value
context:
string
= ""
Default value
isTimeDiffEnabled:
boolean
= true
Returns
void
Static
override
Logger
override
Logger
(
logger
:
LoggerService
|
LogLevel
[]
|
boolean
)
:
void
Parameters
logger:
LoggerService
|
LogLevel
[]
|
boolean
Returns
void
Static
Private
print
Message
print
Message
(
message
:
any
, color
:
(
message
:
string
)
=>
string
, context
?:
string
, isTimeDiffEnabled
?:
boolean
)
:
void
Parameters
message:
any
color:
(
message
:
string
)
=>
string
(
message
:
string
)
:
string
Parameters
message:
string
Returns
string
Default value
context:
string
= ""
Optional
isTimeDiffEnabled:
boolean
Returns
void
Static
Private
print
Stack
Trace
print
Stack
Trace
(
trace
:
string
)
:
void
Parameters
trace:
string
Returns
void
Static
Private
update
And
Get
Timestamp
Diff
update
And
Get
Timestamp
Diff
(
isTimeDiffEnabled
?:
boolean
)
:
string
Parameters
Optional
isTimeDiffEnabled:
boolean
Returns
string
Static
verbose
verbose
(
message
:
any
, context
?:
string
, isTimeDiffEnabled
?:
boolean
)
:
void
Parameters
message:
any
Default value
context:
string
= ""
Default value
isTimeDiffEnabled:
boolean
= true
Returns
void
Static
warn
warn
(
message
:
any
, context
?:
string
, isTimeDiffEnabled
?:
boolean
)
:
void
Parameters
message:
any
Default value
context:
string
= ""
Default value
isTimeDiffEnabled:
boolean
= true
Returns
void
Globals
Logger
constructor
context
is
Timestamp
Enabled
instance
last
Timestamp
log
Levels
call
Function
debug
error
get
Instance
is
Log
Level
Enabled
log
set
Context
verbose
warn
debug
error
log
override
Logger
print
Message
print
Stack
Trace
update
And
Get
Timestamp
Diff
verbose
warn
Generated using
TypeDoc