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

Change SNTEventLog to be a singleton emit a singleton Logger object #668

Closed
wants to merge 2 commits into from
Closed

Change SNTEventLog to be a singleton emit a singleton Logger object #668

wants to merge 2 commits into from

Conversation

tnek
Copy link
Contributor

@tnek tnek commented Nov 8, 2021

Presently, SNTEventLog is already managed as effectively a singleton by the nature of all of the logging mechanisms themselves within SNTApplication anyways.

Making our logging layer a (stub-able) singleton simplifies this part of adding other EventProviders, and should make writing "did this attempt to log?" tests easier.

@google-cla google-cla bot added the cla: yes label Nov 8, 2021
@tnek
Copy link
Contributor Author

tnek commented Nov 8, 2021

Doesn't work quite as expected - will re-send PR later

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant