Giter Site home page Giter Site logo

loggr.extensions.logging's People

Contributors

hdweiss avatar withinfocus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

loggr.extensions.logging's Issues

"Operation is not supported on this platform"

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, Func3 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, Func3 formatter)
at Microsoft.Extensions.Logging.Logger1.Microsoft.Extensions.Logging.ILogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func3 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.FluentEventBase1.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, Func3 formatter)<---
Microsoft.AspNetCore.Server.Kestrel:Warning: Connection processing ended abnormally

Shouldn't be using the Timestamp() method when posting events to Loggr

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.