How to create log files on linux using C#.net core

Prabs 1 Reputation point
2021-04-05T07:16:31.383+00:00

Hi,
I have an console application which is developed with c#.net core 3.1.
I want to create logfiles on linux.
Please help me on this.

Developer technologies | .NET | .NET Runtime
Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Duane Arnold 3,216 Reputation points
    2021-04-05T11:43:29.127+00:00

    I suggest that you look into Serilog or Nlog and see if they have the ability to write log file to Linux using .NET Core.

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.