xss.Logger 5.0.0

This package will handle all login. Nlog, Elmah, etc.

There is a newer version of this package available.
See the version list below for details.
Install-Package xss.Logger -Version 5.0.0
dotnet add package xss.Logger --version 5.0.0
<PackageReference Include="xss.Logger" Version="5.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add xss.Logger --version 5.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: xss.Logger, 5.0.0"
For F# scripts that support #r syntax, copy this into the source code to reference the package.

Release Notes

Supports .Netcore 3.1 and .netframework 4.8
     
     1. Add "Logger" Key in web config, with Value = "nlog" ; Add "MicrosoftFramework" Key in web config, with Value = "netcore" [for netcore only] | "framework" [for framework only]
     example: <add key="Logger" value="nlog" /> , <add key="MicrosoftFramework" value="netcore" />
     2. Create variable  "static ILoggerHandler log = LoggerFactory.Get (EnumLayerIdentifier.Presentation); " as a global variable in a class
     3. Remove Nlog reference,
     Add References :
     using xss.Logger;

     4. To use change LogHandler.SaveException to Log.Save ();
     5. Change LogLevel to EnumLogLevel
     example: log.Save (EnumLogLevel.Fatal, ex);

     How to use it in full net core projects: (Need to inject dependencies of the confgi file and the logger)

     private IConfiguration Configuration;

     private static IConfiguration SetConfig()
     {
       return new ConfigurationBuilder()
               .SetBasePath(AppContext.BaseDirectory)
               .AddJsonFile("{filename}.json", false, true)
               .Build();
     }

     Configuration = SetConfig();
     LoggerFactory.SetConfiguration(Configuration);
     ILoggerHandler log = LoggerFactory.Get(EnumLayerIdentifier.DataAccessLayer);
     log.Save (EnumLogLevel.Fatal, ex);

NuGet packages (177)

Showing the top 5 NuGet packages that depend on xss.Logger:

Package Downloads
xss.ProductEntryBackEnd
Admin product and categories
xss.Market.Client
For another clients not asea. Need to run the script 2.0.0 in the sql, otherwhise save will don't work. xss.Market.client >=2.0.0
xss.Logistics.Client
Contains functionalities related to shipping and warehouse configuration
xss.SettingGlobalEngine.NetCore
Package Description
xss.RolesBackend
This nuget is for Backend for User, roles, navsettings, reports_roles and controls management

Version History

Version Downloads Last updated
5.0.1 245 2/12/2021
5.0.0 342 10/21/2020
4.0.1 168 4/2/2020
4.0.0 114 3/9/2020
3.1.2 121 1/3/2020
3.1.0 108 1/3/2020