2018-05-01 20:28:08 +02:00
|
|
|
|
using System;
|
2019-03-11 09:02:19 +01:00
|
|
|
|
namespace ln.logging
|
2018-05-01 20:28:08 +02:00
|
|
|
|
{
|
|
|
|
|
public static class Logging
|
|
|
|
|
{
|
|
|
|
|
public static void Log(string message, params object[] args)
|
|
|
|
|
{
|
|
|
|
|
Log(LogLevel.INFO, message, args);
|
|
|
|
|
}
|
|
|
|
|
public static void Log(LogLevel level,string message, params object[] args)
|
|
|
|
|
{
|
2018-10-16 21:07:04 +02:00
|
|
|
|
Logger.Default.Log(level,message, args);
|
2018-05-01 20:28:08 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static void Log(Exception e){
|
|
|
|
|
Log(LogLevel.ERROR,"Exception: {0} / {1}\n{2}", e.GetType().Name, e.Message, e.StackTrace.ToString());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|