Skip to content

Ability to change logging behavior#69

Merged
andyburke merged 5 commits into
andyburke:masterfrom
zlumer:master
Sep 13, 2017
Merged

Ability to change logging behavior#69
andyburke merged 5 commits into
andyburke:masterfrom
zlumer:master

Conversation

@zlumer

@zlumer zlumer commented Sep 8, 2017

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Owner

lgtm, thanks!

@zlumer

zlumer commented Sep 18, 2017

Copy link
Copy Markdown
Contributor Author

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