Closed stilnat closed 1 year ago
If you need a quick response, I'd suggest asking this on stack overflow instead; you have all the key ingredients for a good question there - here you're banking on finding someone who is both a Serilog maintainer/contributor (that watches the repo) who also understands the nature of the Unity3D integration, which is a very small one.
@bartelink Thank you for your answer. True, but my hope was that my issue was not specific to Unity integration, more generally it's a concurrent access issue and I believed other application would have the same issue. I'm going to follow your advice anyway, I might get more luck.
For some context, I'm working on SS3D, an open source Unity video game, it's networked and I'm trying to use Serilog to log everything clients do. I have a shared file for that, using shared = true. Issue is, while the logging in the Unity console works as expected, the logs in file are truncated, like so :
The result I was expecting was something like :
As you can see, some lines just didn't show up in the file, and some were truncated. Code wise, I have a method that starts on clients and one on server, they both do nothing much more than setting the logger :
Without shared equals true, and with an individual file for each client, this works as expected. Any idea how to solve the issue ?