Hi,
As from WSO2 MB 2.2.0 onwards, we will be supporting a Cassandra profile
with MB where it will be used as the external Cassandra server. Therefore
it is required to enable Cassandra specific system logs with this profile
as these logs are heavily needed when analyzing any cassandra node issue
specially in a cluster.
To address this we have added a new log4jappender for cassandra profile as
below from MB 2.2.0 onwards. By default this log file will be located in
<MB_HOME>/repository/logs/cassandra_system.log file.
#cassandra specific
log4j.logger.org.apache.cassandra=INFO, CASSANDRA_PROFILE
log4j.additivity.org.apache.cassandra=false
log4j.appender.CASSANDRA_PROFILE=org.apache.log4j.RollingFileAppender
log4j.appender.CASSANDRA_PROFILE.maxFileSize=20MB
log4j.appender.CASSANDRA_PROFILE.Threshold=INFO
log4j.appender.CASSANDRA_PROFILE.layout=org.apache.log4j.PatternLayout
log4j.appender.CASSANDRA_PROFILE.layout.ConversionPattern=%c %5p [%t]
%d{ISO8601} %F (line %L) %m%n
# Edit the next line to point to your cassandra system logs directory
log4j.appender.CASSANDRA_PROFILE.File=${carbon.home}/repository/logs/cassandra_system.log
Thanks!
Ishara
--
Ishara Premasada
Software Engineer,
WSO2 Inc. http://wso2.com/
*Blog : http://isharapremadasa.blogspot.com/
<http://isharapremadasa.blogspot.com/>Twitter :
https://twitter.com/ishadil <https://twitter.com/ishadil>Mobile : +94
714445832*
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev