stratos-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nirmal Fernando <nirmal070...@gmail.com>
Subject Re: Logging messages twice in Stratos Controller log files
Date Fri, 22 Nov 2013 09:50:53 GMT
I've noticed the same, and thanks for investigating. Please commit the fix.


On Fri, Nov 22, 2013 at 3:18 PM, Sajith Kariyawasam <sajith@wso2.com> wrote:

> Hi all,
>
> Found that some messages are logged twice in SC log files, and reason
> being  there are some misconfiguration in log4j.properties file.
>
> In current log4j.properties file we have following,
>
> log4j.rootLogger=INFO, CARBON_CONSOLE, CARBON_LOGFILE, CARBON_MEMORY
> log4j.logger.org.apache=INFO, CARBON_LOGFILE, CARBON_MEMORY
>
> which means, CARBON_LOGFILE appender is added (explicitly) to "org.apache"
> logger, and also the same appender is inherited from the root logger, hence
> "org.apache"  logger having two appenders, but both point to the same log
> file.
>
> removing CARBON_LOGFILE (and  CARBON_MEMORY) appenders from  "org.apache"
> logger solve the problem.
>
> Thanks
> Sajith
>
>
> --
> *Sajith Kariyawasam*
> *Senior Software Engineer; WSO2, Inc.*
> *AMIE (SL)*
> *Blog: http://sajithblogs.blogspot.com/ <http://sajithblogs.blogspot.com/>*
> *Mobile: +94772269575 <%2B94772269575>*
>



-- 
Best Regards,
Nirmal

Nirmal Fernando.
PPMC Member & Committer of Apache Stratos,
Senior Software Engineer, WSO2 Inc.

Blog: http://nirmalfdo.blogspot.com/

Mime
View raw message