12345678910111213141516171819202122232425262728 |
- using NLog;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace SMP.Common.Log
- {
- public class Log
- {
- private static Logger _logger;
- static Log()
- {
- _logger = NLog.LogManager.GetLogger("common");
- }
- public static void Info(string message)
- {
- _logger.Info(message);
- }
- public static void Error(Exception ex, string message)
- {
- _logger.Error(ex, message);
- }
- }
- }
|