© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
5 replies
luluxyooj

❔ NLog write Json file to server

I am able to create an xml file with nlog.config. However the configuration doesn't seem to work for json. I saw there is another way to generate a json file through appsettings.json but it uses a main() in Program.cs. The application I am working on does not have a main() in Program.cs. Does anyone have a successful way to generate a json file with NLog?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

NLog configuration file issues.
C#CC# / help
2y ago
✅ write multiple Lists to file
C#CC# / help
4y ago
WPF read and write to Json [Answered]
C#CC# / help
4y ago