views:

71

answers:

2

My Apache Tomcat Server is getting periodic updates from a Java based client Application, At the moment the scenario is just one client and talking to the server.
I want to log the messages from the client onto the server with time-stamp what kind of framework will help me in achieving this?

+2  A: 
Pascal Thivent
I wouldn't really know!...Frankly I haven't much experience working on server side, so any help would be great!!
Kevin Boyd
What exactly do these logging frameworks do?
Kevin Boyd
A logging framework is a tool that helps programmers to output log statements to a variety of output targets. The Log4J FAQ may help you to understand what a logging framework is about http://logging.apache.org/log4j/1.2/faq.html
Pascal Thivent
+1  A: 

Create a special JSP page for accepting log entries, and invoke it with

http://..... foo.jsp?l=the%20stuff%to%log (i.e. URL encoded)

You then just need to pick out the "l" parameter and do with it what you need to do. An initial implementation could be invoking the log(String s) method in the servlet context.

Thorbjørn Ravn Andersen