1.0.1 • Published 4 years ago

wx-pkg-api-logging v1.0.1

Weekly downloads
3
License
ISC
Repository
github
Last release
4 years ago

wx-pkg-api-logging

Summary

This package provides basic utilities to send your application logs Splunk.

How to use it

Config

see .example.env for configuration

Send logs

see src/lib/examples/example1.js for usages

Optional Configurations

Batching

src/lib/constants.js has the default configuration for optimal performance

batchInterval: 5000, maxBatchCount: 30

If you want to test without batching, please set it as follow via .env

"batchInterval":0,"maxBatchCount":1