Do you want to log from inside the thrift code or from the cassandra thrift classes ?
if it's the later try > log4j.logger.org.apache.thrift=DEBUG,THRIFT org.apache.thrift.transport is part of thrift proper. Cheers ----------------- Aaron Morton Freelance Developer @aaronmorton http://www.thelastpickle.com On 25/01/2012, at 11:36 AM, R. Verlangen wrote: > Pick a "custom" loglevel and redirect them with the /etc/syslog.conf ? > > 2012/1/24 ruslan usifov <ruslan.usi...@gmail.com> > Hello > > I try to log thrift log message (this need to us for solve communicate > problem between Cassandra daemon and php client ), so in > log4j-server.properties i write follow lines: > > log4j.logger.org.apache.thrift.transport=DEBUG,THRIFT > > log4j.appender.THRIFT=org.apache.log4j.RollingFileAppender > log4j.appender.THRIFT.maxFileSize=20MB > log4j.appender.THRIFT.maxBackupIndex=50 > log4j.appender.THRIFT.layout=org.apache.log4j.PatternLayout > log4j.appender.THRIFT.layout.ConversionPattern=%5p [%t] %d{ISO8601} %F (line > %L) %m%n > log4j.appender.THRIFT.File=/var/log/cassandra/8.0/thrift.log > > > But no any messages in log in this case(but thay must be, i.e. Exception > trace), if we enable DEBUG in rootLogger ie: > > log4j.rootLogger=DEBUG,stdout,R > > Thrift log messages appear in sytem.log as expected, but how can we separate > them to separate log? > > PS: cassandra 0.8.9 >