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

LogChannelLocation 2.0 #17

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

Conversation

KyNorthstar
Copy link
Contributor

Instead of a hardcoded enum, it's now protocols, of which you can create custom instances.

To do this, I also needed to introduce generics to LogChannel, and so I introduced a marker protocol that it now conforms to.

Also introduced a bunch of .defaults.

Of course, this requires a 0.6.0

@KyNorthstar KyNorthstar added bug Something isn't working enhancement New feature or request labels Jun 2, 2021
@KyNorthstar KyNorthstar self-assigned this Jun 2, 2021
Sources/SimpleLogging/LogChannel/LogChannel.swift Outdated Show resolved Hide resolved
Sources/SimpleLogging/LogChannel/LogChannel.swift Outdated Show resolved Hide resolved
Sources/SimpleLogging/LogChannel/LogChannel.swift Outdated Show resolved Hide resolved
Sources/SimpleLogging/LogChannel/LogChannel.swift Outdated Show resolved Hide resolved
Sources/SimpleLogging/LogChannel/LogChannel.swift Outdated Show resolved Hide resolved
Sources/SimpleLogging/LogChannel/LogChannel.swift Outdated Show resolved Hide resolved
@KyNorthstar KyNorthstar removed the bug Something isn't working label Jun 9, 2023
KyNorthstar added a commit that referenced this pull request Jun 9, 2023
- Addressing PR comments
- Cleaning up the code & docs a bit
- Adding SwiftUI-style extension statics
KyNorthstar added a commit that referenced this pull request Jun 9, 2023
KyNorthstar and others added 3 commits June 8, 2023 23:26
Instead of a hardcoded enum, it's now protocols, of which you can create custom instances.

To do this, I also needed to introduce generics to `LogChannel`, and so I introduced a marker protocol that it now conforms to.

Also introduced a bunch of `.default`s.
- Addressing PR comments
- Cleaning up the code & docs a bit
- Adding SwiftUI-style extension statics
KyNorthstar added a commit that referenced this pull request Jun 9, 2023
@KyNorthstar KyNorthstar force-pushed the feature/New-LogChannel-Architecture branch from d390715 to 1823dd8 Compare June 9, 2023 06:01
KyNorthstar added a commit that referenced this pull request Jun 9, 2023
@KyNorthstar KyNorthstar force-pushed the feature/New-LogChannel-Architecture branch from 1823dd8 to fa60446 Compare June 9, 2023 06:04
@KyNorthstar KyNorthstar force-pushed the feature/New-LogChannel-Architecture branch from 89e81e9 to 5a6dbca Compare June 9, 2023 06:08
@KyNorthstar KyNorthstar force-pushed the feature/New-LogChannel-Architecture branch from 5a6dbca to 8779490 Compare June 9, 2023 06:09
- Made CustomRaw initializer public
- Fixed incorrect name/documentation for `.customRaw` factory function
- Fixed incorrect documentation of `AnyLogChannel`'s `.append` function
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.

1 participant