Skip to content

feat: custom mock logger #21

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

Merged
merged 1 commit into from
Jun 25, 2025
Merged

Conversation

basgys
Copy link
Contributor

@basgys basgys commented Jun 23, 2025

Summary

Adds a WithLogger method to the Mock clock that allows customising the logger used for debug output, instead of always using testing.TB. The main motivation is that Quartz can be verbose.

Usage

mClock := quartz.NewMock(t).WithLogger(quartz.NoOpLogger)

Adds a `WithLogger` method to the Mock clock that allows customising the logger used for debug output, instead of always using `testing.TB`. The main motivation is that Quartz can be verbose.
@basgys basgys mentioned this pull request Jun 23, 2025
Copy link
Collaborator

@spikecurtis spikecurtis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@spikecurtis spikecurtis merged commit 3734877 into coder:main Jun 25, 2025
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.

2 participants