Me too have seen this. Also IIRC this was experienced in ELB or CC sometime
back. Can you kinly have a look on those log4j configs as well.

Thanks.


On Fri, Nov 22, 2013 at 3:20 PM, Nirmal Fernando <[email protected]>wrote:

> I've noticed the same, and thanks for investigating. Please commit the fix.
>
>
> On Fri, Nov 22, 2013 at 3:18 PM, Sajith Kariyawasam <[email protected]>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/
>



-- 
--
Lahiru Sandaruwan
Software Engineer,
Platform Technologies,
WSO2 Inc., http://wso2.com
lean.enterprise.middleware

email: [email protected] cell: (+94) 773 325 954
blog: http://lahiruwrites.blogspot.com/
twitter: http://twitter.com/lahirus
linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146

Reply via email to