incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From david lee <iecan...@gmail.com>
Subject Re: log4j settings inquiry
Date Fri, 25 Mar 2011 02:29:13 GMT
specifying the path using the file:// protocol worked like a charm.
thank you very much Aaron for your help.

but i was wondering why
 -Dlog4j.configuration=log4j-server.properties didn't work and
 -Dlog4j.configuration=file://"C:\Program Files\Apache Software
Foundation\apache-cassandra-0.7.4\conf\log4j-server.properties"^ worked so i
tried to place cassandra's home folder to a folder without any space
characters
and it worked without using file:// protocol as well.

i guess it's the issue with log4j not being able to handle space characters
well.



On 25 March 2011 05:14, aaron morton <aaron@thelastpickle.com> wrote:

> Just checking the obvious thing, are you running cassandra or cassandra.bat
> ? (cannot imagine you would even get as far as you did but I like asking
> questions).
>
> It's all a bit strange because the code in 0.7.4 will throw some errors if
> it cannot resolve a path to load the config from.
>
> You can hard code the log config path by modifying the line
>  -Dlog4j.configuration=log4j-server.properties^
>
> in cassandra.bat and specifying a path using the file:// protocol
>
> Hope that helps.
> Aaron
>
> On 24 Mar 2011, at 19:40, david lee wrote:
>
> hi,
> i'm trying to run cassandra 0.7 on my windows machine,
> and i don't seem to be able to go beyond the warning message
>
> C:\Program Files\Apache Software
> Foundation\apache-cassandra-0.7.4\bin>cassandra
>  -f
> Starting Cassandra Server
> log4j:WARN No appenders could be found for logger
> (org.apache.cassandra.service.
> AbstractCassandraDaemon).
> log4j:WARN Please initialize the log4j system properly.
> log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for
> more in
> fo.
>
> in my conf folder, i have log4j-server.properties which looks like
> log4j.rootLogger=INFO,stdout,R
>
> # stdout
> log4j.appender.stdout=org.apache.log4j.ConsoleAppender
> 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=file:C:/var/log/cassandra/system.log
>
> any help will be much appreciated.
>
> thanx in advnace
>
>
>

Mime
View raw message