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 #670

Merged
merged 3 commits into from
Nov 10, 2021
Merged

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

merged 3 commits into from
Nov 10, 2021

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.

(prev: #668, realized the issues were unrelated but cleaned up this PR a bit more)

@google-cla google-cla bot added the cla: yes label Nov 8, 2021
Source/santad/Logs/SNTEventLog.m Outdated Show resolved Hide resolved
Co-authored-by: Russell Hancox <russellhancox@users.noreply.github.com>
@tnek tnek merged commit c268ad4 into google:main Nov 10, 2021
@tnek tnek deleted the eventlogsingleton branch November 10, 2021 22:23
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

3 participants