summaryrefslogtreecommitdiff
path: root/src/Notepad/Infrastructure/Extensions/LoggingExtensions.cs
blob: a05e2fca6872dfabad8cbc175bb0d2af8be2780f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
using System;
using Notepad.Infrastructure.Logging;

namespace Notepad.Infrastructure.Extensions {
    public static class LoggingExtensions {
        public static void LogError(this Exception errorToLog) {
            Log.For(errorToLog).Error(errorToLog);
        }

        public static void LogInformational<T>(
            this T typeToCreateLoggerFor,
            string formattedMessage,
            params object[] arguments) {
            Log.For(typeToCreateLoggerFor).Informational(formattedMessage, arguments);
        }
    }
}