Releases: logtail/logtail-js
Releases · logtail/logtail-js
v0.4.6
What's Changed
- Relaxing Context type for better DX by @PetrHeinz in #71
Full Changelog: v0.4.5...v0.4.6
v0.4.5
v0.4.4
What's Changed
- Implement configurable burst protection by @PetrHeinz in #68
Full Changelog: v0.4.3...v0.4.4
v0.4.3
What's Changed
- Allow configuration for toggling sending logs to Better Stack and console output by @PetrHeinz in #67
Full Changelog: v0.4.2...v0.4.3
v0.4.2
What's Changed
- Improve deno support by @smartinio in #59
- Fixes by @curusarn in #61
- Fix hanging
await logtail.flush()
by @PetrHeinz in #66
New Contributors
- @smartinio made their first contribution in #59
Full Changelog: v0.4.1...v0.4.2
v0.4.0
What's new?
- Added retry mechanism
- Enabled by default
- Retries 3 times with 100 ms backoff
- Configure using
retryCount
andretryBackoff
options
- Allow completely silencing errors
- By default, exceptions are still caught and logged to standard output
- Use
ignoreExceptions: true
to silently ignore exceptions - Use
throwExceptions: true
to throw exceptions
- Make
@logtail/node
a regular dependency for@logtail/winston
and@logtail/bunyan
Got questions?
Please let us know at [email protected].
We're happy to help! 🙏
Full Changelog: v0.3.0...v0.4.1
v0.3.0
What's new
- Changed how we determine automatically added context
system.main_file
andruntime.file
. You could see some change in these values depending on your setup. This was done to prevent the library from producing warnings in some cases. - Extended support for log levels. Logtail Node and some frameworks now support sending custom log levels to Logtail.
- More useful logs are sent to Logtail when the log context is recursive or very deep. You can Prevent Logtail from producing warnings:
const logtail = new Logtail(token, {
contextObjectCircularRefWarn: false,
contextObjectMaxDepthWarn: false
});
- Minor fixes for Pino and
.debug()
loging method.
Full Changelog: v0.2.0...v0.3.0
v0.2.0
Changelog:
- Added
logtail.flush()
method that sends all currently batched logs to Logtail without waiting for the batching interval.- Just call
logtail.flush()
before the process exit or at the end of serverless functions. - Pino calls
logtail.flush()
automatically so you don't have to.
- Just call
Want to see code examples? Check out Quick start guide ⇗
Got questions? Please let us know at [email protected]. We're happy to help!