From e5ea72bbc43fbfd1c7516bfc16cd0b6bf4157df3 Mon Sep 17 00:00:00 2001 From: Janik Zikovsky <zikovskyjl@ornl.gov> Date: Mon, 7 Mar 2011 18:57:59 +0000 Subject: [PATCH] Refs #2584 --- Code/Mantid/Framework/Kernel/src/ConfigService.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Code/Mantid/Framework/Kernel/src/ConfigService.cpp b/Code/Mantid/Framework/Kernel/src/ConfigService.cpp index d197d1a776d..8567955991d 100644 --- a/Code/Mantid/Framework/Kernel/src/ConfigService.cpp +++ b/Code/Mantid/Framework/Kernel/src/ConfigService.cpp @@ -323,6 +323,10 @@ void ConfigServiceImpl::configureLogging() Poco::Path logpath(m_logFilePath); + // Undocumented way to override the mantid.log path + if (Poco::Environment::has("MANTIDLOGPATH")) + logpath = Poco::Path(Poco::Environment::get("MANTIDLOGPATH")); + // An absolute path makes things simpler logpath = logpath.absolute(); -- GitLab