Comments (6)
It fails in TaskScheduler.FromCurrentSynchronizationContext(). But i haven't time to fix it =\
from serilog-sinks-graylog.
you can make PR XD
from serilog-sinks-graylog.
from serilog-sinks-graylog.
I have same problem:
.NET 4.6 Console App
During emit I get error:
2018-10-26T11:11:30.0957227Z Oops something going wrong System.InvalidOperationException: The current SynchronizationContext may not be used as a TaskScheduler. v System.Threading.Tasks.SynchronizationContextTaskScheduler..ctor() v Serilog.Sinks.Graylog.GraylogSink.Emit(LogEvent logEvent)
Message is already delivered to Graylog server, but this exception happens.
from serilog-sinks-graylog.
@salamoun @Gosha can you test this case on 2.0.3 version?
from serilog-sinks-graylog.
It seems that version 2.0.3 fix the problem. Thanks.
from serilog-sinks-graylog.
Related Issues (20)
- Nuget package requires System.Text.Json version 7.0.2 HOT 1
- Deadlock Task HOT 1
- Make DefaultSerializerSettings non-readonly HOT 4
- Logging seems to be broken for synchronous WebForms on .NET 4.x HOT 1
- TCP transport not ThreadSafe
- TCP Client not properly disposing of connection HOT 1
- GELF TCP TLS authentication HOT 2
- How to pass Authorization headers for graylog? HOT 2
- Issue with adding properties to logging with LogContext.Pushproperty and .Net6 HOT 1
- TcpTransport can we override ? HOT 1
- Is Graylog 4 supported? HOT 2
- Unhandled exception if graylog goes down HOT 2
- Feature request: Disable compression HOT 1
- .NET 6 + GELF TCP hangs after some time
- Set useSsl from appsettings.json HOT 2
- Serilog stops logging after the 4 line in Graylog HOT 4
- Issue with update to version 3.0.0 HOT 4
- Version 3.0.1 not working HOT 7
- Exception messages are not sent to Graylog with version 3.0.1 HOT 3
- Unable to cast object of type 'Serilog.Sinks.Graylog.Batching.PeriodicBatchingGraylogSink' to type 'Serilog.Core.ILogEventSink' HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from serilog-sinks-graylog.