示例#1
0
        public MonitoringTest()
        {
            ElasticSearchTarget logelasticlogelastic = new ElasticSearchTarget
            {
                Name  = "elastic",
                Uri   = "http://jhistorian.prod.j1:9200/", //Uri = "http://192.168.2.41:32120",
                Index = "JusiBase-${level}-${date:format=yyyy-MM-dd}",
                //Index = "historianWriter-${level}-${date:format=yyyy-MM-dd}",
                //Layout = "${logger} | ${threadid} | ${message}",
                Layout = "${message}",
                IncludeAllProperties = true,
            };

            JusiBase.LoggingBase logging = new LoggingBase(logelasticlogelastic, NLog.LogLevel.Debug, NLog.LogLevel.Fatal);
        }
示例#2
0
 public LanderCommunicationChannel(LoggingBase logger, ActionDM action, string user, int?countryID, CCSubmitDirect db) : base(logger, action, user, countryID, db)
 {
 }