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*

Reply via email to