Skip to content
This repository has been archived by the owner on Jun 23, 2019. It is now read-only.
/ Log.Net Public archive

A modular logging library with support for logging to eventlog, SMTP, MSSQL, XML and more

Notifications You must be signed in to change notification settings

Genbox/Log.Net

Repository files navigation

Log.NET - A modular logger written in C-sharp

Features

  • Support for writing to different outputs: XML, flat files, MSSQL database, eventlog and MSMQ
  • Support for fallback logs. It writes to a file on the local drive if the log fails.
  • Log tracers that logs when it starts and ends logging
  • Encryption support

Examples

Note: Be sure to setup the App.config file correctly. An App.config.example is provided with the project.

Here is how you log to a file.

static void Main(string[] args)
{
	LogEntry entry = new LogEntry("Test data with special characters !\"#%&/()=?`¨'øæå,.", LogPriority.Information);
	entry.WriteToLog();
}

The example above will write to a log file in C:\LogPath\ (as defined in App.config).

For more examples, take a look at the Log.NET unit tests included in the project.

About

A modular logging library with support for logging to eventlog, SMTP, MSSQL, XML and more

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published