Code Monkey home page Code Monkey logo

log4net.demystifier's Introduction

Log4Net.Demystifier NuGet Pre Release

Unmangle the names of async and iterator methods in exception stack traces using @benaadams's Demystifier via custom LogManager which wraps your ILog.

How to Install/Configure?

Install from nuget:

Install-Package Log4Net.Demystifier

Configure via your favourite DI container. For example in StructureMap:

For<ILog>().Use(DemystifiedLogManager.GetLogger("AppLogger"));

Demystify log manager would wrap your logger via demystified logger.

Troubleshooting

If you encounter problem in old csproj based project(s), because of referencing .net standard library to a .net framework based project. You have to:

  1. add RestoreProjectStyle element to csproj
<PropertyGroup>
  <RestoreProjectStyle>PackageReference</RestoreProjectStyle>
</PropertyGroup>
  1. Delete packages.config from your project and uninstall all packages

  2. Install all packages one more time

    Here is a short snippet how to translate packages.config to single line Install-Packages command

  3. If you encounter such error: error : The project.json is referencing the project 'YourProject.csproj', but an output path was not specified on an item in the ProjectReferencesCreatingPackages property. you have to update Visual Studio to > 15.2

  4. If you project linking a file from packages folder like this:

<Content Include="..\packages\package.1.0.0.1\some.file">
  <Link>some.file</Link>
  <CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>

It should be replaced to something like this:

<Content Include="$(NuGetPackageFolders)\package\1.0.0.1\some.file">
  <Link>some.file</Link>
  <CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>

log4net.demystifier's People

Contributors

mnie avatar

Stargazers

Robert Ștefan Stănescu avatar

Watchers

Ben Adams avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.