Org.Apollo.Logging 1.0.0.1

There is a newer version of this package available.
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
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Org.Apollo.Logging" Version="1.0.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Org.Apollo.Logging" Version="1.0.0.1" />
                    
Directory.Packages.props
<PackageReference Include="Org.Apollo.Logging" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Org.Apollo.Logging --version 1.0.0.1
                    
#r "nuget: Org.Apollo.Logging, 1.0.0.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=Org.Apollo.Logging&version=1.0.0.1
                    
Install as a Cake Addin
#tool nuget:?package=Org.Apollo.Logging&version=1.0.0.1
                    
Install as a Cake Tool

<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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0.3 950 10/20/2018
1.0.0.2 797 10/20/2018
1.0.0.1 810 10/19/2018
1.0.0 813 10/19/2018

Summary of changes made in this release of the package.