stratos-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sajith Kariyawasam <saj...@wso2.com>
Subject Logging messages twice in Stratos Controller log files
Date Fri, 22 Nov 2013 09:48:47 GMT
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*

Mime
View raw message