{"repo":"NimaAra/Easy.Logger","free":true,"listed":false,"github":"https://github.com/NimaAra/Easy.Logger","clone":"git clone https://github.com/NimaAra/Easy.Logger.git","description":"A modern, high performance cross platform wrapper for Log4Net.","language":"C#","stars":141,"topics":["dotnet","dotnet-core","csharp","log4net","logging","performance","cross-platform","easy-to-use","easy"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"NuGet Easy Logger A modern, high performance, cross platform wrapper for Log4Net. Supports .Net Core ( .Net 4 & netstandard1.3 ) running on: .Net Core .Net Framework 4 and above Mono & Xamarin Details and benchmarks HERE. If you enjoy what I build then please :-) Usage example: Start by getting the singleton instance which by convention expects a valid log4net.config file at the root of your application: If you need to configure log4net using an alternative configuration file, you can do so by: \\ Any change to the log4net configuration file will be reflected immediately without the need to restart the application. Now that you have an instance of the ILogService , you can get a logger using the GetLogger() method in three different ways: Generics: Type: Plain string: The above logging results in the the following log entries (based on the sample config file): Scoped logging: Sometimes you need to add context to your log entries for example when adding a Correlation ID to identify a request. Instead of having to do this manually, we can leverage the scoping feature of the library: which produces the following log entries: The scoping feature has been implemented with performance in mind and is encouraged to be used instead of the log4net 's Nested Diagnostic Context (NDC) . NDC requires Fixing the Properties which results in a significantly lower performance. Dependency Injection: The library has been designed with DI in mind so as an example, given the service class and its c","default_branch":null,"files":null,"tree":[],"storefront":"/r/NimaAra","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/NimaAra/Easy.Logger/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}