Skip to content

Daniel-Balk/Logging.Net

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logging.Net

A logger library for C#

Documentation

import the logger class

using Logging.Net;

write logs to a file

// the logs should be written to a file
Logger.LogToFile("info.log");

log like blazor

// use a blazor like logger
Logger.UseMBLogger();

log with square brackets

// use a square bracket logger
Logger.UseSBLogger();

log a debug message

// log a message as debug
Logger.Debug("A debug log message...");

log an info message

// log a message as info
Logger.Log("A log message...");

or

// Logger.Info(message) == Logger.Log(message)
Logger.Info("Another log message...");

log a warning message

// log a message as warning
Logger.Warn("A warning message...");

log an error message

// log a message as an error
Logger.Error("A error message..");