Hello again,

I was able to get it working. Instead of JAVA_OPTS i used CATALINA_OPTS.
Thnkas. Cheers,

Hugo

On Fri, Jul 13, 2012 at 4:09 PM, Hugo <[email protected]> wrote:

> Hello all,
>
> I've followed the instructions given at
> http://docs.geoserver.org/latest/en/user/advanced/logging.html
> I was able to set a different log location on Windows through JVM options
> -DGEOSERVER_LOG_LOCATION=D:\some_path
>
> However, I'm not able to do the same under Linux RHEL. I've edited
> catalina.sh and added the following:
>
> JAVA_OPTS="-DGEOSERVER_LOG_LOCATION=/opt/logs/geoserver1.log"
>
> No logs are being sent there. Instead, they are still at the default
> data_dir/logs.
>
> In the log file i can see:
>
> log4j:WARN File option not set for appender [geoserverlogfile].
> log4j:WARN Are you using FileAppender instead of ConsoleAppender?
> log4j:ERROR No output stream or file set for the appender named
> [geoserverlogfile].
> 13 Jul 15:53:22 DEBUG [geoserver.logging] - Non-absolute pathname detected
> for logfile.  Setting logfile relative to data dir.
> 13 Jul 15:53:22 DEBUG [geoserver.logging] - Logging output to file
> '/opt/apache-tomcat-6.0.35_2/webapps/geosmiga/data/logs/geoserver.log'
>
> What am i doing wrong here?
> Thanks in advance.
> Regards,
>
> --
> Hugo Martins
>
>


-- 
Hugo Martins
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to