Skip to content
Snippets Groups Projects
Commit 1ca10063 authored by Alexander van Amesfoort's avatar Alexander van Amesfoort
Browse files

Task #9939: Cobalt: refer send_state, getOutputProcHosts and gpu_load to...

Task #9939: Cobalt: refer send_state, getOutputProcHosts and gpu_load to rtcp.log_prop. Intention is to get rid of send_state log4cplus bogus WARN in (inspection plots filtered) log files
parent 41122fe1
No related branches found
No related tags found
No related merge requests found
...@@ -145,7 +145,6 @@ lofar_add_sbin_scripts( ...@@ -145,7 +145,6 @@ lofar_add_sbin_scripts(
# install logprop files # install logprop files
install(FILES install(FILES
rtcp.log_prop rtcp.log_prop
getOutputProcHosts.log_prop
Station/mpi_node_list.log_prop Station/mpi_node_list.log_prop
Station/station_stream.log_prop Station/station_stream.log_prop
scripts/watchlogs-multitail.conf scripts/watchlogs-multitail.conf
......
...@@ -65,7 +65,7 @@ int main(int argc, char **argv) ...@@ -65,7 +65,7 @@ int main(int argc, char **argv)
exit(1); exit(1);
} }
INIT_LOGGER("getOutputProcHosts"); INIT_LOGGER("rtcp"); // reuse rtcp.log_prop
// Open the parset // Open the parset
Parset ps(argv[optind]); Parset ps(argv[optind]);
...@@ -79,4 +79,4 @@ int main(int argc, char **argv) ...@@ -79,4 +79,4 @@ int main(int argc, char **argv)
} }
return 0; return 0;
} }
\ No newline at end of file
# Configure the loggers
# logging to the MACCLP socket appender.
log4cplus.rootLogger=INFO, STDERR
log4cplus.logger.TRC=INFO
# prevent debug messages: accept >=WARN only, and don't forward messages to the rootLogger
log4cplus.logger.LCS.ApplCommon=WARN, STDERR
log4cplus.additivity.LCS.ApplCommon=false
log4cplus.logger.LCS.MSLofar=WARN, STDERR
log4cplus.additivity.LCS.MSLofar=false
# Logging to console
log4cplus.appender.STDERR=log4cplus::ConsoleAppender
log4cplus.appender.STDERR.layout=log4cplus::PatternLayout
log4cplus.appender.STDERR.layout.ConversionPattern=getOutputProcHosts@%h %D{%Y-%m-%d %H:%M:%S.%q} %-5p %c{3} - %m [%b:%L]%n
log4cplus.appender.STDERR.logToStdErr=true
# Logging to logging server on CCU001
# HERE BE DRAGONS: Do NOT set the logging threshold for the MACCLP appender
# above INFO in the log_prop file, or identification with the MAC Log Processor
# will fail!
#
# JD: Disabled for now, as log4cplus uses extra threads for this, which in turn
# cause crashes in OpenMPI.
#log4cplus.appender.MACCLP=log4cplus::SocketAppender
#log4cplus.appender.MACCLP.port=23999
#log4cplus.appender.MACCLP.host=ccu001
#log4cplus.appender.MACCLP.Threshold=INFO
#log4cplus.appender.STDERR=log4cplus::ConsoleAppender
#log4cplus.appender.STDERR.layout=log4cplus::PatternLayout
#log4cplus.appender.STDERR.layout.ConversionPattern=getOutputProcHosts@%h %D{%Y-%m-%d %H:%M:%S.%q} %-5p %c{3} - %m [%b:%L]%n
#log4cplus.appender.STDERR.logToStdErr=true
#log4cplus.appender.FILE=log4cplus::RollingFileAppender
#log4cplus.appender.FILE.File=${LOG4CPLUS_LOGFILENAME}.log
#log4cplus.appender.FILE.MaxFileSize=10MB
#log4cplus.appender.FILE.MaxBackupIndex=2
#log4cplus.appender.FILE.layout=log4cplus::PatternLayout
#log4cplus.appender.FILE.layout.ConversionPattern=getOutputProcHosts@%h %D{%Y-%m-%d %H:%M:%S.%q} %-5p %c{3} - %m [%b:%L]%n
log4cplus.appender.DUMP=log4cplus::NullAppender
...@@ -47,7 +47,7 @@ int main(int argc, char **argv) { ...@@ -47,7 +47,7 @@ int main(int argc, char **argv) {
return 1; return 1;
} }
INIT_LOGGER("gpu_load"); INIT_LOGGER("rtcp"); // reuse rtcp.log_prop
Parset ps(argv[1]); Parset ps(argv[1]);
......
...@@ -75,7 +75,7 @@ int main(int argc, char **argv) ...@@ -75,7 +75,7 @@ int main(int argc, char **argv)
if (setenv("TZ", "UTC", 1) < 0) if (setenv("TZ", "UTC", 1) < 0)
THROW_SYSCALL("setenv(TZ)"); THROW_SYSCALL("setenv(TZ)");
INIT_LOGGER("send_status"); INIT_LOGGER("rtcp"); // reuse rtcp.log_prop
MessageBus::init(); MessageBus::init();
// Parse parset RAW to prevent exceptions caused by broken parsets. // Parse parset RAW to prevent exceptions caused by broken parsets.
......
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