Thanks. Bellow is my log4j-server.properties. log4j.rootLogger=info,stdout # stdout log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.Target=System.out log4j.appender.stdout.layout=org.apache.log4j.PatternLayout log4j.appender.stdout.layout.ConversionPattern=%5p %d{HH:mm:ss,SSS} %m%n
# rolling log file log4j.appender.R=org.apache.log4j.RollingFileAppender log4j.appender.R.maxFileSize=20MB log4j.appender.R.maxBackupIndex=50 log4j.appender.R.layout=org.apache.log4j.PatternLayout log4j.appender.R.layout.ConversionPattern=%5p [%t] %d{ISO8601} %F (line %L) %m%n # Edit the next line to point to your logs directory log4j.appender.R.File=d:/var/log/cassandra/system.log It cannot wok. Best Regards, Boole Guo Software Engineer, NESC-SH.MIS +86-021-51530666*41442 Floor 19, KaiKai Plaza, 888, Wanhangdu Rd, Shanghai (200042) -----邮件原件----- 发件人: Aaron Morton [mailto:aa...@thelastpickle.com] 发送时间: 2013年11月12日 11:51 收件人: Cassandra User 主题: Re: log info in console I don’t use eclipse, but take a look at log4j-server.properties file and check it’s logging to stdout. If you cannot get it working just follow log file. Cheers ----------------- Aaron Morton New Zealand @aaronmorton Co-Founder & Principal Consultant Apache Cassandra Consulting http://www.thelastpickle.com On 8/11/2013, at 1:34 am, Boole.Z.Guo (mis.cnsh04.Newegg) 41442 <boole.z....@newegg.com> wrote: > Hi, > When I debug Cassandra in eclipse, log info only appears a little. If the > server finish startup, I notice the log info wouldn’t print into the console. > The system os is win7. > Why? > > Thanks. > > Best Regards, > Boole Guo