-
Notifications
You must be signed in to change notification settings - Fork 1
Replaced Unified Logging System with Custom Solution #122
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR replaces the unified logging system with a custom logging solution specifically designed for file provider extensions. The custom solution provides structured JSON logging to files while maintaining compatibility with the unified logging system as a fallback.
- Introduces a new custom logging system with structured JSON file output
- Replaces all unified logging calls throughout the codebase with the new logging API
- Adds mock logging implementations for testing
Reviewed Changes
Copilot reviewed 56 out of 56 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| Sources/NextcloudFileProviderKit/Log/ | New custom logging implementation with protocol, logger, and file management |
| Sources/NextcloudFileProviderKitMocks/ | Mock logging implementation for tests |
| Multiple test files | Updated to import mocks and pass log parameter to constructors |
| Multiple source files | Replaced unified logging calls with custom logging API calls |
| Package.swift | Added NextcloudFileProviderKitMocks target |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Sources/NextcloudFileProviderKit/Log/FileProviderLogMessage.swift
Outdated
Show resolved
Hide resolved
Sources/NextcloudFileProviderKit/Enumeration/Enumerator+Trash.swift
Outdated
Show resolved
Hide resolved
Signed-off-by: Iva Horn <iva.horn@icloud.com>
Closes #98.
It is not perfect yet and not every call consistently using the details argument but it is a start.