Sascha,

While you are compiling deferred binding combinations for each log level,
the default is still 'OFF'. You'll want to change the default to something
else, for example:
  <set-property    name="log_level" value="DEBUG" />

The options are covered here:
  http://code.google.com/p/gwt-log/wiki/GettingStarted

HTH
Fred Sauer
[EMAIL PROTECTED]


On Fri, Aug 29, 2008 at 4:01 PM, [EMAIL PROTECTED] <
[EMAIL PROTECTED]> wrote:

>
> Hello there,
>
> I've got problems with setting up the gwt-log within my project.
>
> Here is what i've recently done:
>
> GWT: 1.4.61
> GWT-ext: 2.0.2
> gwt-log: 1.5.6
> (+ hibernate, hibernate4gwt and dependant libs)
>
> This is my gwt.xml file (without rpc-classes):
> <module>
>        <!-- Inherit the core Web Toolkit stuff.                  -->
>        <inherits name='com.google.gwt.user.User'></inherits>
>
>        <!-- Inherit the GWTExt Toolkit library configuration -->
>        <inherits name="com.gwtext.GwtExt"></inherits>
>
>        <!-- Add Hibernate4GWT Support -->
>        <inherits name="net.sf.hibernate4gwt.Hibernate4Gwt"></inherits>
>
>        <!-- Add gwt-log support -->
>        <inherits name="com.allen_sauer.gwt.log.gwt-log"></inherits>
>
>        <!-- Switch off logging with `OFF` -->
>        <extend-property name="log_level"
> values="TRACE,DEBUG,INFO,WARN,ERROR,FATAL,OFF" />
>
>        <!-- Enable Remote Logger -->
>        <!--
>        <set-property name="log_RemoteLogger" value="ENABLED" />
>        -->
>
>        <!-- Specify the app entry point class.                   -->
>        <entry-point class='net.opaia.ndsproductivity.client.Main'></entry-
> point>
>
>        <stylesheet src="js/ext/resources/css/ext-all.css" />
>        <script src="js/ext/adapter/ext/ext-base.js" />
>        <script src="js/ext/ext-all.js" />
> </module>
>
> This is my "Main" Class (parts of):
>
> import com.allen_sauer.gwt.log.client.DivLogger;
> import com.allen_sauer.gwt.log.client.Log;
>
> public class Main implements EntryPoint, HistoryListener {
>
>        public boolean blnDebugMask = false;
>        public boolean blnDebugMask_DEBUG = false;
>        public boolean blnDebugMask_INFO = false;
>        public boolean blnDebugMask_WARN = false;
>        public boolean blnDebugMask_ERROR = false;
>        public boolean blnDebugMask_FATAL = false;
>
>    public void onModuleLoad() {
>
>        blnDebugMask = true;
>        blnDebugMask_DEBUG = true;
>                blnDebugMask_INFO = true;
>                blnDebugMask_WARN = true;
>                blnDebugMask_ERROR = true;
>                blnDebugMask_FATAL = true;
>
>                if (blnDebugMask == true ) {
>                Log.setUncaughtExceptionHandler();
>                DeferredCommand.addCommand(new Command() {
>                        public void execute() {
>                                onMainModuleLoad();
>                        }
>                });
>                } else {
>                        onMainModuleLoad();
>                }
>    }
>
>  /**
>   * This is the entry point method.
>   */
>    public void onMainModuleLoad() {
>
>        // Load DivLogger
>        if (Log.isLoggingEnabled()) {
>            initDivLogger();
>        }
>
>        if (blnDebugMask == true){
>                Log.info("Logging started");
>                if (blnDebugMask_DEBUG == true) {
>                        Log.debug("This is a 'DEBUG' test message");
>                }
>                if (blnDebugMask_INFO == true) {
>                        Log.info("This is a 'INFO' test message");
>                }
>                if (blnDebugMask_WARN == true) {
>                        Log.warn("This is a 'WARN' test message");
>                }
>                if (blnDebugMask_ERROR == true) {
>                        Log.error("This is a 'ERROR' test message");
>                }
>                if (blnDebugMask_FATAL == true) {
>                        Log.fatal("This is a 'FATAL' test message");
>                }
>        }
>
>     .... GUI-Staff ...
>
> There is NO Logging! No DIV-Logger, and no other logging?
> What is wrong?
>
> Thank you in advance
> Sascha
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"gwt-log" 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/gwt-log?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to