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

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)));
            Console.Out.WriteLine(item.format(arguments));
        }

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