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?
views:
71answers:
2I wouldn't really know!...Frankly I haven't much experience working on server side, so any help would be great!!
Kevin Boyd
2009-09-21 02:45:53
What exactly do these logging frameworks do?
Kevin Boyd
2009-09-21 02:46:25
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
2009-09-21 03:02:47
+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
2009-09-21 05:37:42