mirror of
https://github.com/OAuthSwift/OAuthSwift.git
synced 2026-04-26 04:35:56 +03:00
[PR #665] Added custom log action #712
Labels
No labels
bug
cocoapod
duplicate
enhancement
feature-request
help wanted
help wanted
invalid
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/OAuthSwift#712
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/OAuthSwift/OAuthSwift/pull/665
Author: @Vortec4800
Created: 6/11/2021
Status: 🔄 Open
Base:
master← Head:custom-logger📝 Commits (1)
76c79f9Added custom log action📊 Changes
2 files changed (+31 additions, -3 deletions)
View changed files
📝
Sources/OAuthLogProtocol.swift(+21 -3)📝
Sources/OAuthSwift.swift(+10 -0)📄 Description
The new logging mechanism looks really useful, however, I wanted to extend it to integrate with my app's existing logging system. I added a custom log action that accepts a closure, and the log action is used instead of just printing to the console so the actual log can be customized.
This extends the work done by @svoip and the logging system.
In order to use this new functionality, you would add something like this:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.