Skip to content

Allow passing custom logger implementation #88

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

khromov
Copy link

@khromov khromov commented Jul 18, 2025

Useful for when you have your own logger (eg Winston, Pino)

khromov added 7 commits July 18, 2025 22:37
Introduces a Logger interface and allows passing a custom logger implementation via the config object. Updates documentation with usage examples and exports logger types and utilities. The default logger logic is moved to a new file, enabling better extensibility and integration with external logging systems.
Introduces unit tests for the logger implementation, including createDefaultLogger, custom logger interfaces, and LogLevel type. Tests cover logging behavior based on verbosity, argument handling, and custom logger flexibility.
Eliminated inline TypeScript example blocks from the logger-related type definitions and config documentation to streamline code comments and reduce clutter.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant