Org.Apollo.Logging
1.0.0.1
See the version list below for details.
dotnet add package Org.Apollo.Logging --version 1.0.0.1
NuGet\Install-Package Org.Apollo.Logging -Version 1.0.0.1
<PackageReference Include="Org.Apollo.Logging" Version="1.0.0.1" />
paket add Org.Apollo.Logging --version 1.0.0.1
#r "nuget: Org.Apollo.Logging, 1.0.0.1"
// Install Org.Apollo.Logging as a Cake Addin #addin nuget:?package=Org.Apollo.Logging&version=1.0.0.1 // Install Org.Apollo.Logging as a Cake Tool #tool nuget:?package=Org.Apollo.Logging&version=1.0.0.1
<h1>C# Logging lib</h1><br> <b> How to use manual :</b><br>
using Org.Apollo.Logging; using System;
namespace LogDemo { public class Program { private Log _log = Log.Instance; private static string NameSpace = typeof(Program).FullName;
static void Main(string[] args)
{
Program p = new Program();
p.Add(2, 4);
Console.ReadKey();
}
public int Add(int a, int b)
{
_log.Info(new ErrorDetails() { ErrorSignature = "Add method started execution.", FullNameSpace = NameSpace});
int result = -1;
try
{
_log.Warning(new ErrorDetails() { ErrorSignature = "After this step we might get excpetion. Be prepared.", FullNameSpace = NameSpace });
throw new ArgumentNullException();
result = a + b;
}
catch(Exception e)
{
_log.Error(new ErrorDetails()
{
ErrorSignature = e.Message,
ErrorCode = e.HResult,
StackTrace = e.StackTrace,
FullNameSpace = NameSpace
});
}
return result;
}
}
}
File : App.config - few parameters we have to set before using this lib :
<appSettings> <add key="Name" value="Org.Apollo.Logging"/> <add key="FilePath" value="C:\Logs\TestProject01"/> <add key="FileName" value="Test-project01-{0}"/> <add key="FileSplitSizeInMb" value="1"/> <add key="Mode" value="Debug"/> <add key="Env" value="TUP"/> <add key="IsLogOn" value="True"/> </appSettings>
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net is compatible. net452 is compatible. 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. |
-
- Newtonsoft.Json (>= 11.0.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Summary of changes made in this release of the package.