nreco / logging

Generic file logger for .NET Core (FileLoggerProvider) with minimal dependencies
MIT License
284 stars 56 forks source link

When using multiple instances of same console app we are getting error when writing logs #22

Closed nags-git closed 2 years ago

nags-git commented 3 years ago

When using multiple instances of same console we are getting error when writing logs.

we are getting file in use error

VitaliyMF commented 3 years ago

Each console app should write to its own log file; multiple programs they cannot write to the same file simultaneously.

It is possible to use 'unique' file name for each run by resolving 'placeholders' in the log file name -- see https://github.com/nreco/logging#change-log-file-name-on-the-fly (instead of date you may use timestamp / GUID / whatever else)