Skip to content
Snippets Groups Projects
Commit aecec8c7 authored by Ruud Overeem's avatar Ruud Overeem
Browse files

Bug 1000: Using configLocator for finding the log_prop file.

parent b016fead
No related branches found
No related tags found
No related merge requests found
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
//# Includes //# Includes
#include <Common/LofarLogger.h> #include <Common/LofarLogger.h>
#include <Common/LofarLocators.h>
#include <AMCImpl/ConverterServer.h> #include <AMCImpl/ConverterServer.h>
#include <cstdlib> #include <cstdlib>
...@@ -33,8 +34,14 @@ using namespace LOFAR::AMC; ...@@ -33,8 +34,14 @@ using namespace LOFAR::AMC;
int main(int argc, const char* const argv[]) int main(int argc, const char* const argv[])
{ {
INIT_VAR_LOGGER(argv[0], "AMCServer"); // Init logsystem
ConfigLocator aCL;
string logpropFile(basename(argv[0]));
logpropFile.append(".log_prop");
INIT_VAR_LOGGER(aCL.locate(logpropFile).c_str(), "AMCServer");
LOG_INFO_STR ("Initialized logsystem with: " << aCL.locate(logpropFile));
// Report ourself to the LogggingProcessor
LOG_INFO("MACProcessScope: LOFAR_PermSW_AMCServer"); LOG_INFO("MACProcessScope: LOFAR_PermSW_AMCServer");
// Listen port (default: 31337) // Listen port (default: 31337)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment