I didn't read the blog yet, so sorry if this is repeat..
add log4j.properties and commons-logging.properties in the devel
mode-only src tree at the root of the src directory (eg dev/src/java)
in commons-logging.properties:
org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger
and for the log4j.properties, use your own normal incantation.... here's
one ripped from somewhere out there:
1 log4j.rootCategory=INFO, dest1, dest3
2 ! Log to the console
3 log4j.appender.dest1=org.apache.log4j.ConsoleAppender
4 log4j.appender.dest1.layout=org.apache.log4j.PatternLayout
5 log4j.appender.dest1.layout.ConversionPattern=%-5p %d{HH:mm:ss.SSS}
[%-15.15t] [%-25.25c{1}] %m%n
6 ! LOG TO A FILE
7 log4j.appender.dest3=org.apache.log4j.RollingFileAppender
8 log4j.appender.dest3.layout=org.apache.log4j.PatternLayout
9 log4j.appender.dest3.layout.ConversionPattern=%-5p %d{EEE MMM dd
HH:mm:ss.SSS zzz yyyy} [%-15.15t] [%-25.25c{1}] %m%n
10 ! Specify the file name
11 log4j.appender.dest3.File=./logs/hosted-log4j.log
12 ! Control the maximum log file size
13 log4j.appender.dest3.MaxFileSize=3000KB
14 log4j.appender.dest3.MaxBackupIndex=3
add your log4j.logger<pkg-and-class>=DEBUG lines here
james wrote:
Last week I was trying to find a similar example and couldn't. So I
took a little time an wrote a quick blog post with a small example app
that should help you get started with logging.
http://treasonx.blogspot.com/2010/07/gwt-21-logging.html
On Jun 21, 3:21 pm, "[email protected]" <[email protected]> wrote:
Does anyone have an example of how to get java.util.logging.Logger
messages to the console when running in development mode? I was
excited about removing an external dependency of gwt-log, but can not
seem to get any dev-mode CLIENT log messages to appear to the
console..
Complicating matters is that Jetty uses slf4j, which I am fairly
unfamiliar with for setting up properly with respect to the
appropriate libraries being available. I really just want log messages
to go to the console... any information leading to this situation will
be rewarded with beer. :-)
-Jesse
--
Jon Gorrono
email{>+++++++++[>+++++++++++>++++++++++++>+++++++>+++++<<<<-]>+++++++.>++++.<---.>-.+++..---.-.+.>+.<++++++.<----.+.---.>+.<++++++++.>---.>>+.<<<----.-.>++.}
http{ats.ucdavis.edu}
--
You received this message because you are subscribed to the Google Groups "Google
Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.