Error when using gwt-log

46 views
Skip to first unread message

Vivek Nandavanam

unread,
Jun 20, 2012, 12:42:48 AM6/20/12
to gwt...@googlegroups.com
Hello.

I am new to setting up logging.
The war that is being created was being deployed on Tomcat and it does not show System.out messages so I felt this would be the best option to do logging as the app is working in hosted mode and not compiled mode.
So i followed the example and this is what i have done:
- I am using gwt-log-3.0.2
- Added these lines in *.gwt.xml
 <inherits name="com.allen_sauer.gwt.log.gwt-log-DEBUG" />
  <set-configuration-property name="log_pattern" value="(%F:%L) %d [%-5p] %m%n" /> 
- And this in the class that implements EntryPoint:
    @Override
    public void onModuleLoad() {
      Log.setUncaughtExceptionHandler();

      Scheduler.get().scheduleDeferred(new ScheduledCommand() {
        @Override
        public void execute() {
          onModuleLoad2();
        }
      });
    }
    
    private void onModuleLoad2() {
    Log.debug("Print 'DEBUG' message");
//     Program Code     
    } 

The errors that I get when trying to do a GWT compile are:
gwtc:
     [java] Compiling module com.*
     [java]    Validating newly compiled units
     [java]       Ignored 1 unit with compilation errors in first pass.
     [java] Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors.
     [java]    [ERROR] Errors in 'jar:file:/*/war/WEB-INF/lib/smartgwt-mobile.jar!/com/allen_sauer/gwt/log/client/Log.java'
     [java]       [ERROR] Line 38:  The method getProperty(String) is undefined for the type System
     [java]    [ERROR] Cannot proceed due to previous errors 
 
 
Reply all
Reply to author
Forward
0 new messages