29 lines
687 B
C#
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");
|
|
}
|
|
}
|
|
}
|