Preparing search index...
The search index is not available
@lemoncloud/lemon-web-core
@lemoncloud/lemon-web-core
LoggerService
Class LoggerService
Implements
LogInterface
Index
Constructors
constructor
Properties
is
Browser
is
Node
namespace
options
utils
Methods
create
Log
Message
create
Timestamp
debug
error
get
Browser
Format
get
Format
get
Node
Format
info
log
log
On
Browser
warn
write
Log
Constructors
constructor
new
Logger
Service
(
namespace
?
,
options
?
)
:
LoggerService
Parameters
namespace
:
string
= 'LEMON'
options
:
LoggerOption
= {}
Returns
LoggerService
Properties
Private
is
Browser
is
Browser
:
boolean
Private
is
Node
is
Node
:
boolean
Private
namespace
namespace
:
string
Private
options
options
:
LoggerOption
= ...
Private
utils
utils
:
LoggerHelperService
Methods
Private
create
Log
Message
create
Log
Message
(
type
,
text
,
format
,
shouldFormat
?
)
:
string
Parameters
type
:
LogType
text
:
string
format
:
FormatInterface
shouldFormat
:
boolean
= true
Returns
string
Private
create
Timestamp
create
Timestamp
(
date
)
:
string
Parameters
date
:
Date
Returns
string
debug
debug
(
message
,
...
extraParams
)
:
void
Parameters
message
:
string
Rest
...
extraParams
:
any
[]
Returns
void
error
error
(
message
,
...
extraParams
)
:
void
Parameters
message
:
string
Rest
...
extraParams
:
any
[]
Returns
void
Private
get
Browser
Format
get
Browser
Format
(
type
)
:
FormatInterface
Parameters
type
:
LogType
Returns
FormatInterface
Private
get
Format
get
Format
(
type
)
:
FormatInterface
Parameters
type
:
LogType
Returns
FormatInterface
Private
get
Node
Format
get
Node
Format
(
type
)
:
FormatInterface
Parameters
type
:
LogType
Returns
FormatInterface
info
info
(
message
,
...
extraParams
)
:
void
Parameters
message
:
string
Rest
...
extraParams
:
any
[]
Returns
void
log
log
(
message
,
...
extraParams
)
:
void
Parameters
message
:
string
Rest
...
extraParams
:
any
[]
Returns
void
Private
log
On
Browser
log
On
Browser
(
type
,
message
,
format
)
:
void
Parameters
type
:
LogType
message
:
string
format
:
FormatInterface
Returns
void
warn
warn
(
message
,
...
extraParams
)
:
void
Parameters
message
:
string
Rest
...
extraParams
:
any
[]
Returns
void
Private
write
Log
write
Log
(
type
,
message
)
:
void
Parameters
type
:
LogType
message
:
string
Returns
void
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
constructor
is
Browser
is
Node
namespace
options
utils
create
Log
Message
create
Timestamp
debug
error
get
Browser
Format
get
Format
get
Node
Format
info
log
log
On
Browser
warn
write
Log
@lemoncloud/lemon-web-core
Loading...