master
1using System;
2using Notepad.Infrastructure.Logging;
3
4namespace Notepad.Infrastructure.Extensions {
5 public static class LoggingExtensions {
6 public static void LogError(this Exception errorToLog) {
7 Log.For(errorToLog).Error(errorToLog);
8 }
9
10 public static void LogInformational<T>(
11 this T typeToCreateLoggerFor,
12 string formattedMessage,
13 params object[] arguments) {
14 Log.For(typeToCreateLoggerFor).Informational(formattedMessage, arguments);
15 }
16 }
17}