node-logger
Preparing search index...
HTTPTransport
Class HTTPTransport
Batches entries and delivers them over HTTP. Call close() during shutdown.
Hierarchy (
View Summary
)
HTTPTransport
ElasticsearchTransport
Implements
Transport
Index
Constructors
constructor
Methods
close
flush
write
Constructors
constructor
new
HTTPTransport
(
config
:
HTTPTransportConfig
,
fetch
?:
{
(
input
:
URL
|
RequestInfo
,
init
?:
RequestInit
)
:
Promise
<
Response
>
;
(
input
:
string
|
URL
|
Request
,
init
?:
RequestInit
)
:
Promise
<
Response
>
;
}
,
)
:
HTTPTransport
Parameters
config
:
HTTPTransportConfig
fetch
:
{
(
input
:
URL
|
RequestInfo
,
init
?:
RequestInit
)
:
Promise
<
Response
>
;
(
input
:
string
|
URL
|
Request
,
init
?:
RequestInit
)
:
Promise
<
Response
>
;
}
= global.fetch
(
input
:
URL
|
RequestInfo
,
init
?:
RequestInit
)
:
Promise
<
Response
>
MDN Reference
Parameters
input
:
URL
|
RequestInfo
Optional
init
:
RequestInit
Returns
Promise
<
Response
>
(
input
:
string
|
URL
|
Request
,
init
?:
RequestInit
)
:
Promise
<
Response
>
MDN Reference
Parameters
input
:
string
|
URL
|
Request
Optional
init
:
RequestInit
Returns
Promise
<
Response
>
Returns
HTTPTransport
Methods
close
close
()
:
Promise
<
void
>
Returns
Promise
<
void
>
flush
flush
()
:
Promise
<
void
>
Returns
Promise
<
void
>
write
write
(
entry
:
LogEntry
)
:
void
Parameters
entry
:
LogEntry
Returns
void
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
close
flush
write
node-logger
Loading...
Batches entries and delivers them over HTTP. Call close() during shutdown.