OneTrueError - Automated exception handling

Introducing my logging library

I’ve just published the first version (consider it a beta) of my logging library to the official nuget server(s).

Why another library when there are existing ones as log4net and nlog? Because it should be easier to get started and you should still have the power to customize the logging if needed. Griffin.Logging do not have a configuration file, everything is configured through code.

Simple syntax

The easiest approach only requires one line to configure the framework:


You can swap the AddFile method to AddConsole if you would like.

Fluent syntax

Use the fluent syntax if you need more power:

var config = new FluentConfiguration()
	  .As.ConsoleLogger().Filter.OnLogLevelBetween(LogLevel.Info, LogLevel.Error)


public class MyClass
    ILogger logger = LogManager.GetLogger<MyClass>();

    public MyClass()
        // Built in formatting for cleaner syntax.
        logger.Info("Welcome {0}!.", user.Name);
    public void HideError()
            throw new InvalidOperationException("No no", new OutOfScopeException("Can't thing anymore"));
        catch (Exception err)
            // Log an exception. The inner exceptions are logged too (recursive)
            logger.Warning("Ooops, we got an exception.", ex);



Check the homepage for more information or just install the nuget package “griffin.logging“.

This entry was posted in Libraries and tagged , , . Bookmark the permalink.