logging.properties shouldn't matter here. The key is to make sure that log4j uses the log4j.properties or log4j.xml for your application.
I'm not familiar with the classpath setup in Tomcat 6, but there's often a global / server / shared / system classpath, and then an application specific classpath with its own classloader. Did you put log4j jar in WEB-INF/lib/ ? and log4j.properties/xml in WEB-INF/classes/ ? You can always either: - Step through the log4j initialization code with a debugger - Programatically modify the log4j configuration - Turn on debugging -Dlog4j.debug (see for example http://stackoverflow.com/questions/1140358/how-to-initialize-log4j-properly ) Did you read the Tomcat specific section here http://logging.apache.org/log4j/1.2/manual.html ? On Thu, Jul 28, 2011 at 2:22 AM, niro <[email protected]> wrote: > Hi, > > First of, let me say that I really appreciate the work that has been > done so far on this library. > > I could not find a problem to my solution when I trying to use > RemoteLogger and log4j. > I'm working with Tomcat 6, and deployed my application according to > the notes published. > > When I perform Log.error(categoryName, message) in my GWT app, the > message is sent across the wire (verified with a sniffer) > and being logged unfortunately to the "catalina.out" file of Tomcat. > > I would like to know very much how I can log all those messages to a > separate log file like i do on the server side > using log4j. I have defined the log4j file on the server, placed it > under the WEB-INF/classes directory, and it works > fine logging server side Log records, and also created the wanted file > for logging the GWT app log records (it just remains empty). > > The log category for the GWT app has been defined as well in the > log4j.properties file. > > What am I missing ? How can I write logged messages from my GWT app to > server side log files using log4j ? > Do I still need to define the logging.properties file ? > > Best would be if you could provide with an example. > Thanks for helping! > > n' > > -- > 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. > > -- Fred Sauer Developer Advocate Google Inc. 1600 Amphitheatre Parkway Mountain View, CA 94043 [email protected] -- 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.
