summaryrefslogtreecommitdiff
path: root/code/common/Logging.cs
blob: e1db1bf9a47b947e0cabfdab550f795cc2ccd3b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
using System;
using System.Reflection;

namespace common
{
    static public class Logging
    {
        static public void log(this string item, params object[] arguments)
        {
            Console.Out.WriteLine("{0}: {1}".format(Assembly.GetEntryAssembly().GetName().Name, item.format(arguments)));
        }

        static public void add_to_log(this Exception item)
        {
            item.Message.log();
        }
    }
}