Skip to content
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

Add option to suppress Logger output #21

Merged
merged 7 commits into from
Sep 1, 2023

Conversation

marcusmunch
Copy link
Collaborator

Fixes #18.

A Logger object may now be initialized with an argument output_to_console, determining if output by default should be printed to console.

This behavior is easily overridden by passing TRUE or FALSE to Logger$log_info(split).

This allows for simultaneous resolution of #17 and #16 in that update_snapshot may be updated to take a predefined Logger object (which may or may not have console output suppressed).

@marcusmunch marcusmunch added the enhancement New feature or request label Aug 31, 2023
Marcus Munch Grünewald added 3 commits August 31, 2023 14:19
Always handle outputting with `sink()`, but suppress file output
by writing to `nullfile()` instead of conditionally calling `sink()`.
Console output is handled by the `split` option to `sink()`.
@RasmusSkytte RasmusSkytte added this to the v0.2 milestone Sep 1, 2023
@RasmusSkytte RasmusSkytte marked this pull request as ready for review September 1, 2023 07:47
@marcusmunch marcusmunch merged commit 746ffb3 into ssi-dk:main Sep 1, 2023
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Disable console output when defining Logger object
2 participants