-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OS-dependend directory separator LayoutRender #3791
Comments
Hi! Thanks for opening your first issue here! Please make sure to follow the issue template - so we could help you better! |
Can't you use forward slashes in Windows? AFAIK I n windows you could use both. But have to agree we should add this feature |
Anyway, you could also add the DS in your application with a few lines of code |
Yes, its work on windows. But if make a mistake with separator for linux (use windows notation '') env its create log files in current app directory with incorrect names. |
Alternative one can setup LogDir using GDC at runtime. |
I made it as |
fixed by #3793! |
Problem
When using FileTarget, properties such as archiveFileName and fileName must be generated according to the target OS (another directory delimiter "/" or "") for proper interpretation.
At the moment, to solve this problem, it is necessary to dynamically download the version of nlog-config with the correct paths depending on the OS or other manipulations.
For example (identical configs with only other "log-dir" variable):
nlog.win.config
nlog.unix.config
Solution example
It would be great if there was a pre-defined layout render (directory path separator or OSVersion marker) to solve this problem.
Version:
For example:
nlog.config
The text was updated successfully, but these errors were encountered: