Skip to content

Implement multi-process log file sharing on .NET Core #37

@derFunk

Description

@derFunk

There is a parameter shared when creating a RollingFile sink.
But currently it's throwing a NotSupportedException when set to true.
See also

#if SHARING
_currentFile = _shared ?
(ILogEventSink)new SharedFileSink(path, _textFormatter, _fileSizeLimitBytes, _encoding) :
new FileSink(path, _textFormatter, _fileSizeLimitBytes, _encoding, _buffered);
#else
_currentFile = new FileSink(path, _textFormatter, _fileSizeLimitBytes, _encoding, _buffered);
#endif

What's the status here?

  • Is it working to write to one file from multiple processes even if this shared parameter is set to false?
  • If not, will this be implemented?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions