You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
683 B

7 months ago
// See https://aka.ms/new-console-template for more information
6 months ago
using ConsoleStarter;
using log4net;
6 months ago
using log4net.Config;
using Newtonsoft.Json;
7 months ago
internal class Program
{
private static readonly ILog Log = LogManager.GetLogger(typeof(Program));
7 months ago
public static void Main(string[] args)
{
6 months ago
XmlConfigurator.ConfigureAndWatch(new FileInfo(AppDomain.CurrentDomain.BaseDirectory + @"\log4net.xml"));
string str = "{\n\"header\":{\n\"cmd\":\"amtBat\",\n\"id\":1,\n\"sid\":\"xxxx\"\n},\n\"body\":{\n\"sn\": \"xxxx\",\n\"cn\": \"xxxx\",\n\"bn\": \"xxxx\",\n\"bm\": \"xxxx\",\n\"at\": \"2020-11-20 18:23:06\",\n\"am\": 30\n}\n}";
Log.Info(str);
6 months ago
}
7 months ago
}