BedeGaming / sinks-rollingfile

A serilog sink for rolling files based on size and time
Apache License 2.0
15 stars 20 forks source link

Logging from multiple threads? #35

Closed syrotkin closed 7 years ago

syrotkin commented 7 years ago

Hi!

I am wondering if the sink supports logging from multiple threads (within the same process). In the documentation I could only see that logging from multiple processes is not supported, so just wanted to check if logging from multiple threads was any different.

If we do need to log from multiple threads, do you think it might be enough to just introduce locking around each logging method call?

Thank you!

ti24horas commented 7 years ago

@syrotkin the multithreading is handled by serilog. This package is only a sink for Serilog, then it should work with multiple threads out of the box.