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.
<PackageVersion Include="SimpleLog-Logger" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="SimpleLog-Logger" />
                    
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 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.
#addin nuget:?package=SimpleLog-Logger&version=1.0.0
                    
Install SimpleLog-Logger as a Cake Addin
#tool nuget:?package=SimpleLog-Logger&version=1.0.0
                    
Install SimpleLog-Logger as a Cake Tool

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 443 12/15/2020

Initial release