Make <logpath> work with relative directories
See original GitHub issueAt the moment <logpath> works only with full paths, doesn’t work with relative paths. It would be nice to have it work from the working directory of the .exe
Working:
<logpath>C:\Program Files\My Service\logs</logpath>
Not working:
<logpath>logs</logpath>
<logpath>%CD%\logs</logpath>
Thanks, Andrea
Issue Analytics
- State:
- Created 9 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Set relative path for a log4j2 log file - java
log file in your project root directory. For example if the base of your project root is c:/mycode/myproject then the log file should...
Read more >Directory.CreateDirectory error on linux using C#.net core
The error is "access to the path is denied" I am using following code in c#.net core if (!Directory.Exists(logPath)) { Directory.
Read more >How to make `find` return relative paths?
Ensure that you specify a relative path to each file, using /srv/SAMPLE001 as the base directory for the relative path. I...
Read more >Golang: Paths - Techstructive Blog
To get the path for the current working directory, we can use the os. ... make use of relative paths as they make...
Read more >Understanding Relative File Paths
A relative path describes the location of a file relative to the current (working) directory*. An absolute path describes the location from ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
why so complex? <logpath>%BASE%\log</logpath>
works fine …
At least now there are examples and user-visible documentation added in #170