Ticket #2584 (closed: fixed)
Logging files: allow Linux to specify log location; allow changing log file path at run time, in C and python
Reported by: | Janik Zikovsky | Owned by: | Janik Zikovsky |
---|---|---|---|
Priority: | major | Milestone: | Iteration 29 |
Component: | Infrastructure | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Tester: | Martyn Gigg |
Description
Change History
comment:5 Changed 10 years ago by Janik Zikovsky
- Status changed from accepted to verify
- Resolution set to fixed
comment:8 Changed 10 years ago by Janik Zikovsky
Also Russell wants the mantid.properties search to go in this order:
- Current working dir
- Path to executable
- MANTIDPATH folder.
To which I add: a MANTIDPROPERTIES environment var to give a full path to an extra properties file.
comment:11 Changed 10 years ago by Janik Zikovsky
comment:12 Changed 10 years ago by Janik Zikovsky
comment:14 Changed 9 years ago by Andrei Savici
- Status changed from verify to verifying
- Tester set to Andrei Savici
comment:15 Changed 9 years ago by Andrei Savici
- Status changed from verifying to reopened
- Resolution fixed deleted
I was able to change the log file location by adding logging.channels.fileChannel.path to my .mantid/Mantid.user.properties MANTIDLOGPATH did not work No info how to change logfile path at runtime from MantidPlot
comment:16 Changed 9 years ago by Janik Zikovsky
The MANTIDLOGPATH trick is intentionally un-documented because Russell preferred it that way. It should work by doing this though:
MANTIDLOGPATH=/path/to/mantid.log ./MantidPlot
comment:17 Changed 9 years ago by Janik Zikovsky
- Status changed from reopened to accepted
- Milestone changed from Iteration 28 to Iteration 29
comment:18 Changed 9 years ago by Janik Zikovsky
- Status changed from accepted to verify
- Resolution set to fixed
comment:19 Changed 9 years ago by Martyn Gigg
- Status changed from verify to verifying
- Tester changed from Andrei Savici to Martyn Gigg
comment:20 Changed 9 years ago by Martyn Gigg
- Status changed from verifying to closed
All seems to work as intended.
comment:21 Changed 5 years ago by Stuart Campbell
This ticket has been transferred to github issue 3431