Esempio n. 1
0
        public void Writer(object logEventDataAsync)
        {
            var    led    = GetLoggingEventData((LogEventDataAsync)logEventDataAsync);
            var    level  = LogLevel.FromString(led.Level);
            string logapi = level.LogApi;

            RequestHelpers.DoPost(logapi, led);//MessagePack进行数据压缩,减小传输数据
        }