question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Make <logpath> work with relative directories

See original GitHub issue

At 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:closed
  • Created 9 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
2933280commented, Nov 16, 2015

why so complex? <logpath>%BASE%\log</logpath>

works fine …

0reactions
oleg-nenashevcommented, Dec 29, 2016

At least now there are examples and user-visible documentation added in #170

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found