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

Is there a way to disable the command logging? #49

Closed
rlundy opened this issue Jul 9, 2018 · 5 comments
Closed

Is there a way to disable the command logging? #49

rlundy opened this issue Jul 9, 2018 · 5 comments
Labels

Comments

@rlundy
Copy link
Contributor

rlundy commented Jul 9, 2018

Can I disable the Logger output? Sometimes it's handy, but sometimes it just clutters my Debug window.

Is there some kind of configuration setting to turn it off?

@mariotoffia
Copy link
Owner

mariotoffia commented Jul 9, 2018

Yes, I don't know of the top of my head but it depends on if you're using the full framework or .net core.
It logs using the System.Diagnostics.Debugger.Log in full framework and the ILogger in .net core under the category Ductus.FluentDocker.

Around this for .net core:

{
  "Logging": {
    "IncludeScopes": false,
    "LogLevel": {
      "Ductus.FluentDocker": "None"
      }
   }
}

A link for .net core that describes this process: https://docs.microsoft.com/en-us/aspnet/core/fundamentals/logging/?view=aspnetcore-2.1

It is possible to do this in app.config for full framework - checkout
https://docs.microsoft.com/en-us/dotnet/framework/wcf/diagnostics/tracing/configuring-tracing

Cheers,
Mario

mariotoffia pushed a commit that referenced this issue Jul 10, 2018
This is usefull when the normal configuration files are not wanted and just a simple way of disabling logging. It is turned on by default to be backwards compatible. This is related to issue #49
@rlundy
Copy link
Contributor Author

rlundy commented Jul 16, 2018

Very nice! Do you how soon this change will be pushed to NuGet?

@mariotoffia
Copy link
Owner

mariotoffia commented Jul 18, 2018 via email

@mariotoffia
Copy link
Owner

I've uploaded the release 2.3.1. If there are any problems, please re-open this issue.

@rlundy
Copy link
Contributor Author

rlundy commented Jul 23, 2018

Thank you for the package update! I tried it out today and it works great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants