Skip to content

L200 is a single-file class library that provides a simple logger for C# projects.

License

Notifications You must be signed in to change notification settings

Joseph-Early/L200

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

L200

L200 is a single-file class library that provides a simple logger for C# projects.

To use L200, add the class library to your project and then Logger.Setup() and Logger.Log() should work. A simple example is shown below:

using L200;
public class Program
{
    public static void Main(string[] args)
    {
        // Set up the logger
        Logger.Setup(true, true, "log/", Logger.Levels.DEBUG);

        // Log some examples
        Logger.Log("Hello World!", Logger.Levels.FATAL);
        Logger.Log("Hello World!", Logger.Levels.ERROR);
        Logger.Log("Hello World!", Logger.Levels.WARN);
        Logger.Log("Hello World!", Logger.Levels.INFO);
        Logger.Log("Hello World!", Logger.Levels.DEBUG);
        Logger.Log("Hello World!", Logger.Levels.TRACE);

    }
}

Example of what each log level looks like: Logger

About

L200 is a single-file class library that provides a simple logger for C# projects.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages