tsys-merchant / loggr.extensions.logging Goto Github PK
View Code? Open in Web Editor NEWA Loggr provider for Microsoft.Extensions.Logging
A Loggr provider for Microsoft.Extensions.Logging
Using version 1.0.0 on .Net Core 1.1 getting the following exception:
System.AggregateException: An error occurred while writing to logger(s). (Operation is not supported on this platform.) ---> System.PlatformNotSupportedException: Operation is not supported on this platform.
at Loggr.LogClient.PostEventDelegate.BeginInvoke(Event eventObj, AsyncCallback callback, Object object)
at Loggr.FluentEventBase1.Post(Boolean Async) at Loggr.Extensions.Logging.LoggrLogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func
3 formatter)
at Microsoft.Extensions.Logging.Logger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func3 formatter) --- End of inner exception stack trace --- at Microsoft.Extensions.Logging.Logger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func
3 formatter)
at Microsoft.Extensions.Logging.Logger1.Microsoft.Extensions.Logging.ILogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func
3 formatter)
at Microsoft.AspNetCore.Hosting.Internal.HostingLoggerExtensions.RequestStarting(ILogger logger, HttpContext httpContext)
at Microsoft.AspNetCore.Hosting.Internal.HostingApplication.CreateContext(IFeatureCollection contextFeatures)
at Microsoft.AspNetCore.Server.Kestrel.Internal.Http.Frame1.<RequestProcessingAsync>d__2.MoveNext() ---> (Inner Exception #0) System.PlatformNotSupportedException: Operation is not supported on this platform. at Loggr.LogClient.PostEventDelegate.BeginInvoke(Event eventObj, AsyncCallback callback, Object object) at Loggr.FluentEventBase
1.Post(Boolean Async)
at Loggr.Extensions.Logging.LoggrLogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func3 formatter) at Microsoft.Extensions.Logging.Logger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func
3 formatter)<---
Microsoft.AspNetCore.Server.Kestrel:Warning: Connection processing ended abnormally
In the file LoggrLogger.cs, you create an event and set the timestamp before posting it. Your code should not be doing that and it will cause problems if the time on your server is not in-sync with the time on our servers.
The TimeStamp() method is used when you are queuing events on your side (typically in an offline scenario) and sent at a time different than when it was logged. In the case of an application that was offline when an event occurred and it waits until it is back online to post the event to Loggr, then TimeStamp() can be used to indicate that.
I hope that is helpful. We've had a customer run into this problem.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.