1234567891011121314151617181920212223242526272829303132 |
- using Serilog;
- namespace Team.Utility
- {
- public static class LogUtil
- {
- /// <summary>
- /// INfo
- /// </summary>
- /// <param name="msg"></param>
- public static void WriteInfo(object msg)
- {
- Log.Logger.Information(msg.ToString());
- }
- /// <summary>
- /// 异常
- /// </summary>
- /// <param name="msg"></param>
- public static void WriteError(object msg)
- {
- Log.Logger.Error(msg.ToString());
- }
- /// <summary>
- /// Debug
- /// </summary>
- /// <param name="msg"></param>
- public static void WriteDebug(object msg)
- {
- Log.Debug(msg.ToString());
- }
- }
- }
|