Hi fred
I am using gwt-log 2.6.0 with gwt 1.6.4 running on tomcat 6 on win xp
sp2.
the messages are being logged to the IDE console in hosted mode
however when deployed in tomcat no messages are being logged to the
server. Im fairly sure this was working but i have no idea when or why
it stopped working. The messgaes are logged to div when i set it to
enabled so im really confused
I want to use the JDK 1.4 logging. not log4j.
Any help would be greatly appreciated.
btw this is a brilliant project. thank you :-)
web.xml:
<servlet>
<servlet-name>gwt-log-remote-logger-servlet</servlet-name>
<servlet-
class>com.allen_sauer.gwt.log.server.RemoteLoggerServiceImpl</servlet-
class>
</servlet>
<servlet-mapping>
<servlet-name>gwt-log-remote-logger-servlet</servlet-name>
<url-pattern>/gwt-log</url-pattern>
</servlet-mapping>
*.gwt.xml:
<inherits name='com.allen_sauer.gwt.log.gwt-log-DEBUG'/>
<set-property name="log_RemoteLogger" value="ENABLED" />
<set-property name="log_DivLogger" value="DISABLED" />
code:
import com.allen_sauer.gwt.log.client.*;
...
public void onModuleLoad() {
// setup logging
final Logger logger = new RemoteLogger(); // logs to stderr on
server
Log.addLogger(logger);
Log.setUncaughtExceptionHandler();
// this ensures All errors and exceptions are logged
DeferredCommand.addCommand(new Command() {
public void execute() {
onModuleLoadDeffered();
}
});
}
/**
* Loads the app.
*/
private void onModuleLoadDeffered() {
Log.fatal("hello servlet");
}
ant build script to compile / create war (i know its a little unusual
but the project structure is fairly complex):
<target name="run.gwt.compiler.module.client" description="Run GWT
compiler">
<java fork="true" jvm="${module.jdk.bin.client}/java"
classname="com.google.gwt.dev.Compiler">
<jvmarg line="-Xmx256m -Xss1024k"/>
<classpath>
<pathelement location="${gwt.sdk.home.client}/$
{gwt.sdk.dev.jar.name}"/>
<path refid="client.module.sourcepath"/>
<path refid="library.logger.classpath" /> <!--
<path refid="client.runtime.module.classpath"/>
<path refid="rpc.module.sourcepath"/>
</classpath>
<arg value="-logLevel"/>
<arg value="WARN"/>
<arg value="-war"/>
<arg value="${gwt.compiler.output.client}"/>
<arg value="-style"/>
<arg value="OBF"/>
<arg value="${gwt.module.name}"/>
</java>
</target>
<target name="create.war">
<!-- rename folder -->
<delete dir="${basedir}\GWTCompilerOutput\signoff" />
<move file="${basedir}\GWTCompilerOutput
\com.paretopartners.signoff.signoffClient" tofile="${basedir}
\GWTCompilerOutput\signoff" />
<copy todir="${basedir}\GWTCompilerOutput\signoff\WEB-INF">
<fileset dir="${basedir}/server/WEB-INF" />
</copy>
<copy todir="${basedir}\GWTCompilerOutput\signoff\WEB-INF
\classes">
<fileset dir="${basedir}/out/production">
<exclude name="**\signoff-transfer\**" />
<exclude name="**\keyimporter\**" />
<exclude name="**\nopassfinder\**" />
</fileset>
</copy>
<copy flatten="true" includeEmptyDirs="no" todir="${basedir}
\GWTCompilerOutput\signoff\WEB-INF\lib">
<fileset dir="${basedir}/lib">
<exclude name="**/*.zip"/>
<exclude name="**/gwt-user.jar" />
<exclude name="**/gwt-dev-windows.jar" />
</fileset>
</copy>
</target>
Thanks
Steve
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---