FIC_Solar/solarApp/Service/testLog.cs
2023-10-30 08:54:54 +08:00

29 lines
687 B
C#

using System;
using System.Collections.Generic;
using System.Text;
using Serilog;
using static System.Windows.Forms.VisualStyles.VisualStyleElement;
namespace solarApp.Service
{
internal class testLog
{
private ILogger logger = Log.ForContext<testLog>();
//private ILogger logger;
//public ILogger MyLoger
//{
// get
// {
// if (logger == null)
// {
// logger = Log.ForContext<testLog>();
// }
// return logger;
// }
//}
public void procOne() {
logger.Information("call procOne OK");
}
}
}