I want to save the printed information to txt text so that we can view important information.
Loggers are created using a LoggerConfiguration object:
Log.Logger = new LoggerConfiguration().CreateLogger();
Log.Information("No one listens to me!");
// Finally, once just before the application exits...
Log.CloseAndFlush();
This is some code I checked the document, I want to save the data in Json format, so that the structure is clear and easy for us to view, what do I need to do, thank you for your suggestions.
CodePudding user response:


