Skip to content
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

Stop verbose logging messages ? #695

Open
tonyfonager opened this issue Apr 28, 2016 · 3 comments
Open

Stop verbose logging messages ? #695

tonyfonager opened this issue Apr 28, 2016 · 3 comments

Comments

@tonyfonager
Copy link

What version of PushSharp are you using?

4.0.10

Describe your issue:

When push messages are queued, a lot of "verbose" messages are printed to the console.

It is running inside a Console app.

What are the steps required to reproduce this issue?

It has been here since I upgraded from 2.x to 4.0.10

Please provide any Exception Stack Traces

No exceptions.

image

@es-alt
Copy link

es-alt commented May 2, 2016

I would prefer to keep it, especially if we could:
a) control verbosity
b) be able to use it with product's logging.
If something goes wrong, I'd like to be able to see verbose output in the same place where the rest of the logs for our product is.

@copernicus365
Copy link

You can control logging by setting the static Log class.
There you can add your own ILogger with Log.AddLogger.

ILogger defines a single member input:
void Write (LogLevel level, string msg, params object[] args);

Then you can also clear the loggers, as by default it appears PushSharp adds its own short ConsoleLogger ILogger implementation.

So then you can first call Log.ClearLoggers() to clear that one, that should do the trick.

@reeceengle
Copy link

@tonyfonager -- Did you ever find a solution to this issue?

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

No branches or pull requests

4 participants