Hi,
I've tried to understand how GeoServer does logging, read the GSIP and LoggingStartupContextListener.java, but I haven't been able to make it spit out anything.
I need more debug information from GeoWebCache in Eclipse. The module currently comes with a log4j.properties file that looks like this:
# Debugging log settings
log4j.rootLogger=INFO, stdout, logfile
# ------------- stdout logging ---------------------
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
# Follow GeoServer's logging pattern
log4j.appender.stdout.layout.ConversionPattern=%d{dd MMM HH:mm:ss} %p [%c{2}] - %m%n
Is there an easy fix?
-Arne
Hi Arne,
Welcome to the wonderful world of logging in GeoServer :).
Unfortunately you cant do per module logging in this way... although it sure would be nice. Instead all logging is controlled by the log4j properties file in <data directory>/logs which matches the log configuration. A line like:
log4j.category.org.geowebcache=ALL
Should do it.
-Justin
Arne Kepp wrote:
Hi,
I've tried to understand how GeoServer does logging, read the GSIP and LoggingStartupContextListener.java, but I haven't been able to make it spit out anything.
I need more debug information from GeoWebCache in Eclipse. The module currently comes with a log4j.properties file that looks like this:
# Debugging log settings
log4j.rootLogger=INFO, stdout, logfile
# ------------- stdout logging ---------------------
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
# Follow GeoServer's logging pattern
log4j.appender.stdout.layout.ConversionPattern=%d{dd MMM HH:mm:ss} %p [%c{2}] - %m%n
Is there an easy fix?
-Arne
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel
!DSPAM:4007,487d170e164994901796417!
--
Justin Deoliveira
The Open Planning Project
jdeolive@anonymised.com
Justin Deoliveira ha scritto:
Hi Arne,
Welcome to the wonderful world of logging in GeoServer :).
Unfortunately you cant do per module logging in this way... although it sure would be nice. Instead all logging is controlled by the log4j properties file in <data directory>/logs which matches the log configuration. A line like:
log4j.category.org.geowebcache=ALL
Just to confirm, I added
log4j.category.org.geowebcache=INFO
to my default logging config and it works, I start getting logs
from GWC... the only strange things that I'm noticing is that
Google sometimes reports "Bad request" errors, but nothing shows
up in the logs. Is GWC logging its errors somehow, like providing
a stack trace? And if so, at which logging level?
Cheers
Andrea