UNPKG
pino-splunk-events
Version:
latest (0.0.11)
0.0.11
0.0.10-2
0.0.10-1
0.0.10-0
0.0.9
0.0.8
0.0.7
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
Pino transport layer to splunk-events
github.com/vtex/pino-splunk-events
vtex/pino-splunk-events
pino-splunk-events
/
src
/
core
/
getSplunk.ts
13 lines
(10 loc)
•
280 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
import
SplunkEvents
from
'splunk-events'
import
axios
from
'axios'
import
type
{
Config
}
from
'splunk-events'
export
const
getSplunk
= (
config
:
Config
) =>
new
SplunkEvents
({
shouldParseEventData
:
false
,
debounceTime
:
0
,
request
: axios
as
any
, ...config, })