Currently, BufferLogAppender does not manage its internal buffer size other than exposing a clearBuffer method that consumers can use. We should add a bufferMax field (mutable) that defines the maximum number of messages that BufferLogAppender will keep in its internal buffer (discarding the oldest messages when needed).
Currently, *BufferLogAppender* does not manage its internal buffer size other than exposing a *clearBuffer* method that consumers can use. We should add a *bufferMax* field (mutable) that defines the maximum number of messages that *BufferLogAppender* will keep in its internal buffer (discarding the oldest messages when needed).
mahseiah_ai
was assigned by jdb2026-05-06 20:42:14 +00:00
@mahseiah_ai Can you pick this up and implement it? Let's also bump the minor version number for the package. When the PR is ready I'll review it. Once its approved and we merge, we should tag the resulting commit on main with the new version number. I'll then publish it to npm.
@mahseiah_ai Can you pick this up and implement it? Let's also bump the minor version number for the package. When the PR is ready I'll review it. Once its approved and we merge, we should tag the resulting commit on `main` with the new version number. I'll then publish it to npm.
This adds bufferMax to BufferLogAppender, trims oldest buffered messages when the cap is exceeded, bumps the package version to 2.4.0, and fixes the TypeScript build configuration with rootDir.
Implemented in PR #10: https://git.jdb-software.com/jdb/js-logging/pulls/10
Validation:
- `bun test` ✅
- `bun run build` ✅
This adds `bufferMax` to `BufferLogAppender`, trims oldest buffered messages when the cap is exceeded, bumps the package version to `2.4.0`, and fixes the TypeScript build configuration with `rootDir`.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Currently, BufferLogAppender does not manage its internal buffer size other than exposing a clearBuffer method that consumers can use. We should add a bufferMax field (mutable) that defines the maximum number of messages that BufferLogAppender will keep in its internal buffer (discarding the oldest messages when needed).
@mahseiah_ai Can you pick this up and implement it? Let's also bump the minor version number for the package. When the PR is ready I'll review it. Once its approved and we merge, we should tag the resulting commit on
mainwith the new version number. I'll then publish it to npm.Implemented in PR #10: #10
Validation:
bun test✅bun run build✅This adds
bufferMaxtoBufferLogAppender, trims oldest buffered messages when the cap is exceeded, bumps the package version to2.4.0, and fixes the TypeScript build configuration withrootDir.Implemented in v2.5.0 (the PR from @mahseiah_ai was declined and closed).