SimpleLog-Logger 1.0.0

dotnet add package SimpleLog-Logger --version 1.0.0                
NuGet\Install-Package SimpleLog-Logger -Version 1.0.0                
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="SimpleLog-Logger" Version="1.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SimpleLog-Logger --version 1.0.0                
#r "nuget: SimpleLog-Logger, 1.0.0"                
#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.
// Install SimpleLog-Logger as a Cake Addin
#addin nuget:?package=SimpleLog-Logger&version=1.0.0

// Install SimpleLog-Logger as a Cake Tool
#tool nuget:?package=SimpleLog-Logger&version=1.0.0                

SimpleLog


Simple Logging Application for .NET projects.

Add a reference to SimpleLog and use like so:

        Logger.Log("test1");
        Logger.WriteToFile();
        

Alternatively you can specify a filename for the Log file. The Default is "logfile.log"

        Logger.SetLogFileName("mylogfile.txt");
        

You can also specify the path for logging using the following syntax:

        Logger.SetLogPath("C:\logdump");
        

The log can be completely cleared using the following syntax:

        Logger.Flush();
        

Use case


Here is an example use case for this class library.

        try
        {
            SomeOperation();
        }
        catch (Exception ex)
        {
            Logger.Log(ex.Message);
        }
        
There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

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.

Version Downloads Last updated
1.0.0 389 12/15/2020

Initial release