how to use nlog
#2151
-
What am I doing wrong with logging? console OK. NLog not writing the log to files. Help. using .net core 7 console app.
builder.SetMinimumLevel(Microsoft.Extensions.Logging.LogLevel.Debug); this does not work anymore I can get logging to the console, but no logging to files.
code:
nothing logs to files. nlog.config
|
Beta Was this translation helpful? Give feedback.
Answered by
snakefoot
Oct 3, 2023
Replies: 1 comment 1 reply
-
Try adding See also: https://github.com/NLog/NLog/wiki/Logging-troubleshooting |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
amccorma
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Try adding
throwConfigExeceptions="true"
and enabling NLog InternalLogger and look for clues,See also: https://github.com/NLog/NLog/wiki/Logging-troubleshooting