| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- using System;
- namespace ETModel
- {
- public static class Log
- {
- private static readonly ILog globalLog = new NLogAdapter();
- public static void Trace(string message)
- {
- globalLog.Trace(message);
- }
- public static void Warning(string message)
- {
- globalLog.Warning(message);
- }
- public static void Info(string message)
- {
- globalLog.Info(message);
- }
- public static void Debug(string message)
- {
- globalLog.Debug(message);
- }
- public static void Error(Exception e)
- {
- globalLog.Error(e.ToString());
- }
- public static void Error(string message)
- {
- globalLog.Error(message);
- }
- public static void Fatal(Exception e)
- {
- globalLog.Fatal(e.ToString());
- }
- public static void Fatal(string message)
- {
- globalLog.Fatal(message);
- }
-
- public static void Msg(object msg)
- {
- Debug(MongoHelper.ToJson(msg));
- }
- }
- }
|