Ability to change logging behavior #69
No reviewers
Labels
No labels
bug
enhancement
high priority
low priority
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
andyburke/UnityHTTP!69
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "master"
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?
I've been using UnityHTTP for some time now, and have found one feature very helpful: the ability to change logging behavior.
This PR introduces 3 different logging behaviors:
UnityLogger(prints to Unity console),ConsoleLogger(prints to System.Console) andDiscardLogger(discards logs without actually printing anything).The loggers can be set per each request, default logger is stored in
Request.Logger.The default behavior wasn't changed, I even left some of the #defines in place to maintain 100% char-to-char backwards compatibility.
lgtm, thanks!
Thanks for merging!