Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Ability to change logging behavior#69

Merged
andyburke merged 5 commits intoandyburke:masterandyburke/UnityHTTP:masterfrom
zlumer:masterzlumer/UnityHTTP:masterCopy head branch name to clipboard
Sep 13, 2017
Merged

Ability to change logging behavior#69
andyburke merged 5 commits intoandyburke:masterandyburke/UnityHTTP:masterfrom
zlumer:masterzlumer/UnityHTTP:masterCopy head branch name to clipboard

Conversation

@zlumer
Copy link
Contributor

@zlumer zlumer commented Sep 8, 2017

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) and DiscardLogger (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.

@andyburke andyburke merged commit 58d043b into andyburke:master Sep 13, 2017
@andyburke
Copy link
Owner

lgtm, thanks!

@zlumer
Copy link
Contributor Author

zlumer commented Sep 18, 2017

Thanks for merging!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.