public static void logServer ( int logLevel , String message , Throwable throwable ) { String logMessage = message ; if ( null == logMessage ) { logMessage = "" ; } if ( null != throwable ) { logMessage += "\n" + getMessage ( throwable ) ; } LogRequest logRequest = new LogRequest ( ) ; logRequest . setLevel ( logLevel ) ; logRequest . setStatement ( logMessage ) ; GwtCommand command = new GwtCommand ( LogRequest . COMMAND ) ; command . setCommandRequest ( logRequest ) ; Deferred deferred = new Deferred ( ) ; deferred . setLogCommunicationExceptions ( false ) ; GwtCommandDispatcher . getInstance ( ) . execute ( command , deferred ) ; }
Log a message in the server log .