CodeNode.Logging
1.0.9
dotnet add package CodeNode.Logging --version 1.0.9
NuGet\Install-Package CodeNode.Logging -Version 1.0.9
<PackageReference Include="CodeNode.Logging" Version="1.0.9" />
paket add CodeNode.Logging --version 1.0.9
#r "nuget: CodeNode.Logging, 1.0.9"
// Install CodeNode.Logging as a Cake Addin #addin nuget:?package=CodeNode.Logging&version=1.0.9 // Install CodeNode.Logging as a Cake Tool #tool nuget:?package=CodeNode.Logging&version=1.0.9
A simple Singleton implementation of Log4Net Logger.
Package will add required settings in web.config and add a folder Configuration at root, which will contain config for log4net. It also install Log4Net package.
Once installed, we can use it by :
CodeNode.Logging.Logger.Instance.Info("Message")
CodeNode.Logging.Logger.Instance.Warning("Message")
CodeNode.Logging.Logger.Instance.Error(ex); // ex => Exception
CodeNode.Logging.Logger.Instance.Fatal(ex);// ex => Exception
It will create a Logs folder at root and will also create two log files. One for info and one for errors.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net40 is compatible. net403 was computed. net45 is compatible. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Update web and app config