Skip to content

Simple and easy to use Logger for .NET projects.

Notifications You must be signed in to change notification settings

morber11/SimpleLog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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);
        }

About

Simple and easy to use Logger for .NET projects.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages