https://github.com/sachinnagesh/log-middleware
This service cache logs and forward cached logs to configured post-endpoint on set setting based on batch-size or batch-interval
https://github.com/sachinnagesh/log-middleware
cache fiber-framework go go-channel go-routine gofiber golang logging
Last synced: about 1 month ago
JSON representation
This service cache logs and forward cached logs to configured post-endpoint on set setting based on batch-size or batch-interval
- Host: GitHub
- URL: https://github.com/sachinnagesh/log-middleware
- Owner: sachinnagesh
- Created: 2024-02-22T06:31:17.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-22T13:56:22.000Z (over 2 years ago)
- Last Synced: 2024-06-20T22:26:06.412Z (about 2 years ago)
- Topics: cache, fiber-framework, go, go-channel, go-routine, gofiber, golang, logging
- Language: Go
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# log-middleware
This service cache logs and forward cached logs to configured `post-endpoint` on set setting based on `batch-size` or `batch-interval`
## Settings
The below settings can be set as env var. If not set it will be assigned a default value
BATCH_SIZE (default 100)
BATCH_INTERVAL (default 600): In seconds
POST_ENDPOINT (default http://0.0.0.0:3001/log-collector-srv/bulk/log)