[
https://issues.apache.org/jira/browse/TRAFODION-2596?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15977802#comment-15977802
]
ASF GitHub Bot commented on TRAFODION-2596:
-------------------------------------------
Github user DaveBirdsall commented on a diff in the pull request:
https://github.com/apache/incubator-trafodion/pull/1070#discussion_r112582882
--- Diff: core/conn/odbc/src/odbc/nsksrvr/SrvrMain.cpp ---
@@ -246,8 +246,20 @@ catch(SB_Fatal_Excep sbfe)
myProcName = proc_info.process_name;
char logNameSuffix[32];
- sprintf( logNameSuffix, "_%d_%d.log", myNid, myPid );
-
CommonLogger::instance().initLog4cxx("log4cxx.trafodion.masterexe.config",
logNameSuffix);
+ const char *lv_configFileName = "log4cxx.trafodion.sql.config";
--- End diff --
Thanks for keeping the old behavior as an option. That will make debugging
easier when one wishes to attend to just one process.
> Improve the log4j and log4cxx infrastructure in Trafodion
> ---------------------------------------------------------
>
> Key: TRAFODION-2596
> URL: https://issues.apache.org/jira/browse/TRAFODION-2596
> Project: Apache Trafodion
> Issue Type: Improvement
> Reporter: Selvaganesan Govindarajan
> Assignee: Selvaganesan Govindarajan
>
> Currently SQL logs messages in different files identified by the master node
> and pid in its name. This creates many log files in $TRAF_HOME/log directory
> and makes it unmanageable.
> SQL primarily use log4cxx infrastructure for logging error messages and error
> events. I believe error messages are written only when the master process
> reads the diagnostics area and it is not written when the error originates.
> But the error events(SQLMXLogging) might be written by any process.
> In addition, all other logs on the java side uses a single log file even when
> it is written from multiple processes in our environment. Eg
> trafodion.hdfs.log trafodion.dtm.log. Even the C++ logging writes from
> multiple processes. The amount of log entries written by SQL from C++ side is
> way less than the any other logging within our environment. Definitely, they
> pale in comparison with hbase, hive and other Hadoop processes.
> So, I think it will be neat solution to log the entries from all SQL
> processes into one log file per node
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)