Releases: Julien-R44/pino-loki
Releases · Julien-R44/pino-loki
v2.4.0
Move from got to native fetch
v2.3.0
🚀 Features
- Convert arrays to indexed object - by @Julien-R44, Joel Edwardson and joeledwardson in #27 (6078a)
View changes on GitHub
v2.2.1
v2.2.0
🚀 Features
- Support for custom log level mapping - by @vktrl (#23)
- Add got response body when logpusher fail - by @Julien-R44 (013f1)
- Add docker-compose for running test locally - by @Julien-R44 (a3e1e)
🐞 Bug Fixes
- Restore nock - by @Julien-R44 (bf344)
View changes on GitHub
v2.1.3
Downgrade Got dependency and fix CJS/ ESM issue
v2.1.2
No significant changes
View changes on GitHub
v2.1.1
No significant changes
View changes on GitHub
v2.1.0
Features :
- We now allows custom headers to be passed to pino-loki through the
headers
options. This is useful for passing the X-Scope-OrgID header to Loki. - Support for nano timestamps has been added. See the example in the examples folder for more details.
- Added a little utility type for defining pino loki options :
import pino from 'pino'
import type { LokiOptions } from 'pino-loki'
const transport = pino.transport<LokiOptions>({
target: "pino-loki",
options: {
// ...
},
});
Fix :
- When batching mode was enabled, some logs could be lost if the main process was killed before the batch was sent. This is now fixed.
Other than that, some code has been refactored :
- Migrate to ESM
- Switch to
got
instead ofaxios
And some integration tests have been added. Logs are sent to a real loki instance and we check that they are correctly received and parsed. Will add a docker-compose file to make it easier to run the tests soon.