summaryrefslogtreecommitdiff
path: root/lib/LoggingExtensions.cs
blob: 4798871eee7bdc7862138c0e419cf29a54c5efa6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
using System;

namespace jive
{
  public static class LoggingExtensions
  {
    public static Logger log<T>(this T item_to_log)
    {
      return Log.For(item_to_log);
    }

    public static void add_to_log(this Exception error_to_log)
    {
      Log.For(error_to_log).error(error_to_log);
    }
  }
}