2.6.11 (2024-08-16)
2.6.10 (2024-08-15)
2.6.9 (2024-06-26)
2.6.8 (2023-11-07)
- deps: Bump [email protected] fixes CVE-2023-45857 f37105c - Darin Spivey, closes: #84
- deps: Bump @logdna/[email protected] c7a791c - Darin Spivey
- deps: Bump [email protected] c15e8ba - Darin Spivey
2.6.7 (2023-04-21)
- ci: Test with node 18 efd6a44 - Darin Spivey
2.6.6 (2022-06-29)
- deps: [email protected] and [email protected] 38d0655 - Darin Spivey
- deps: Install @logdna/[email protected] 158a5ea - Darin Spivey, closes: #72
- deps: [email protected] 9b98c4a - Darin Spivey
2.6.5 (2022-05-19)
- send: Allow _serializeBuffer() to be async f00421a - Eric Melski
- test: Use correct expected result for error tests ea88daf - Eric Melski
2.6.4 (2022-04-21)
- extract _serializeBuffer method d23b0c1 - Eric Melski
2.6.3 (2022-04-21)
- extract _getPayloadSize method 68a7e54 - Eric Melski
2.6.2 (2022-04-14)
- ci: Bump to node:17 e410324 - Darin Spivey
2.6.1 (2022-01-20)
- deps: [email protected] 20bd01d - Darin Spivey, closes: #63
2.6.0 (2021-11-29)
- docs: add default value for
verboseEvents
. f8afe88 - Eric Melski
- optionally include buffer in send/error events. e3e8755 - Eric Melski
2.5.0 (2021-11-16)
2.4.1 (2021-09-23)
2.4.0 (2021-09-08)
- deps: Upgrade linting, tap and other deps d6e6458 - Darin Spivey
- levels: Support custom log levels 0324293 - Darin Spivey
2.3.2 (2021-04-13)
- docs: Correct bad documentation for logging errors 0606986 - Darin Spivey
- contributors: Use all-contributors 78d997f - Darin Spivey
- deps: Remove unnecessary eslint plugins 1141c8d - Darin Spivey
- Switch to using semantic-release b1fa6ca - Darin Spivey
- add @alanzchen as a contributor 61600f3 - Darin Spivey
- add @darinspivey as a contributor af54268 - Darin Spivey
- add @esatterwhite as a contributor 6c8807f - Darin Spivey
- add @ligerzero459 as a contributor 9bdeac8 - Darin Spivey
- add @mdeltito as a contributor 369e1ac - Darin Spivey
- add @nhuttm as a contributor e8e63c2 - Darin Spivey
- add @relative as a contributor 50c9050 - Darin Spivey
- [2cda1aac84] - fix: Turn off maxBodyLength in Axios (Darin Spivey)
- [ba40b6948a] - (SEMVER-MINOR) feat: Add EADDRNOTAVAIL to the retryable error codes (Darin Spivey)
- [ed7835a5d6] - fix: Move branch name from master to main (Darin Spivey)
- [a0f141bfaa] - doc: add contribution guides (Eric Satterwhite)
- [e8df8ad569] - fix: Remove invalid characters from the user-agent (Darin Spivey)
- [26600d6d94] - fix: Remove length validation for instantiation options (Darin Spivey)
- [bff4b95e17] - fix: tests should not use
match
for Symbols (Darin Spivey) - [7d93f15a5c] - fix: tags array values must be converted to a string (Darin Spivey)
- [c84b073d95] - deps: [email protected] (Darin Spivey)
- [5be9d49bfc] - (SEMVER-MINOR) feat: Add more context (headers) to the errors (Darin Spivey)
- [a5caa19ba0] - package: bump to [email protected] (Tran Minh Nhut)
- [4b012a8835] - fix(docs): update example of using Logger on AWS Lambda (Mike Del Tito)
- [41f5dc525e] - fix: Add
sendUserAgent
totypes.d.ts
(Alan Chen)
- [99c12195a3] - (SEMVER-MINOR) fix: Omit user-agent header if
sendUserAgent
option isfalse
(Darin Spivey) LOG-7793
- [003584ac29] - fix: add PR validation to Jenkinsfile (Ryan Mottley) LOG-7716
- [c99d8b5169] - (SEMVER-MAJOR) feat:
ignoreRetryableErrors
will not emit retry-able errors (Darin Spivey) LOG-7639
- [18f03a8d5e] - deps: Switch to eslint-config-logdna (Darin Spivey) LOG-7630
- [23ae74ce3b] - fix: Add .npmignore (Darin Spivey) LOG-7630
- [21747f898b] - fix: Move from CircleCI to Jenkins for CI (Darin Spivey) LOG-7630
- [c9dacac6a8] - package: bump to @logdna/[email protected] (Darin Spivey)
This file documents all notable changes in theLogDNA Node.js logger package
. The release numbering uses semantic versioning.
1.3.2 - September 14, 2020
- Removed
eslint
as an unnecessarypeerDependency
. It can be indevDependencies
only.
1.3.1 - September 9, 2020
- The Typescript definition needed to extend EventEmitter
- Fixed the default timeout to be 30 seconds instead of 5 seconds.
1.3.0 - September 9, 2020
- Corrected the module name in the Typescript definition
- Proxy support for either http or https proxy server URLs
- Husky and commitlint to help enforce conventional commit style
1.2.0 - September 2, 2020
- Added additional error codes and statuses that trigger HTTP retries
- Added support for a
207
(partial success) response. Lines which errored will emit anerror
event.
1.1.0 - August 31, 2020
- Added a log method (
agentLog
) intended for LogDNA usage only. This will handle logging from our agent. - Added gzip compression to support
agentLog
. This should not be used for public consumers and is only for theagentLog
method.
1.0.1 - August 26, 2020
- Corrected a broken link ("Best Practices") in docs/migrating-from-older-versions.md
1.0.0 - August 25, 2020
- Removed
debug
since it's not compatible everywhere. See issue #89 class Logger
forces the use of thenew
keyword- Helper functions are broken out to declutter the class file
Logger
class is no longer exported. Helper functions should be used to instantiate it.cleanUpAll
andflushAll
functions were removed along with callbacks in general. The class is now anEventEmitter
instead.configs.js
was renamed to the more appropriateconstants.js
- Made all variables consistent in naming convention (lowerCamelCase)
- Added EventEmitter for successes, warnings and errors
- Fixed retry logic and possibility for double timers
- Fixed race condition with clearing a single buffer. Now, multiple buffers are used so that they can be independently cleared. This fixes a race condition where lines that were added during the HTTP request could be removed without being sent
log()
Options as a string must now be a log level. TypeError if not.- Properly handles opts.meta, opts.context and this._meta
according to
indexMeta
- Removed
sizeof
since it was buggy. Logic replaced with.length
of the lines - Added
meta
to the constructor so that it can easily be set without needing to calladdMetaProperty
after instantiation. - Fixed map transitions; No dynamic addition of object properties or
delete
usage. ip
can now be an IPv6 address- Added a loadtest.js test to ensure there is not data loss
- Exponential Backoff with Jitter algorithm implemented for HTTP retries