[ 
https://issues.apache.org/jira/browse/TRAFODION-2596?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16086566#comment-16086566
 ] 

ASF GitHub Bot commented on TRAFODION-2596:
-------------------------------------------

GitHub user selvaganesang opened a pull request:

    https://github.com/apache/incubator-trafodion/pull/1178

    [TRAFODION-2596] Improve the log4j and log4cxx infrastructure in Traf…

    …odion
    
    Removed setting the root logger to be the appender logger in most of
    the configuration files. This would allow T2 driver applications
    to have control over the logging in their layer to its preferred way.
    But, the logging in SQL engine layer will be controlled by the Trafodion
    engine itself.
    
    Changed the code so that the logging location and the file name is
    picked up from the config file.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/selvaganesang/incubator-trafodion 
seabed_logging

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-trafodion/pull/1178.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1178
    
----
commit 4f9da0b6d4e9a56e7f7bd8692195dc809a9197af
Author: selvaganesang <selva.govindara...@esgyn.com>
Date:   2017-07-13T22:58:13Z

    [TRAFODION-2596] Improve the log4j and log4cxx infrastructure in Trafodion
    
    Removed setting the root logger to be the appender logger in most of
    the configuration files. This would allow T2 driver applications
    to have control over the logging in their layer to its preferred way.
    But, the logging in SQL engine layer will be controlled by the Trafodion
    engine itself.
    
    Changed the code so that the logging location and the file name is
    picked up from the config file.

----


> 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.4.14#64029)

Reply via email to