Software Engineer at Center for Water Informatics & Technology·
Needs advice
on
NLogNLog
and
SerilogSerilog
in

Hi All, I am working upon developing a C# based windows service to work as a TCP server using Visual Studio 2019 as a development studio while using .NET Core 3.0.

As its a background application, therefore, I am up on to add tracing and logging feature into it and want to write to 'text file' my trace and log outputs.

By my research, I came upon 2 potential tracing and logging frameworks and on the verge to choose 1, therefore Serilog OR NLog.

Anyone here who can help me out by his/her experience of 1 framework being better than other.?

READ LESS
4 upvotes·1M views
Replies (1)
Recommends
on
Serilog

I'd suggest Serilog, as it provides semantic logging, has a large amount of sinks (Locations to log to). Out of the box supports logging to text files, which is your requirement. Well documented and supported. Add it together with a product like Seq and you have a robust application logging platform.

READ MORE
3 upvotes·330 views
Avatar of Waqas Riaz

Waqas Riaz

Software Engineer at Center for Water Informatics & Technology