You might be able to pull this off with AJAX and a servlet that actually
does the logging.

--
Sloan
 

-----Original Message-----
From: James Stauffer [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 31, 2005 12:35 PM
To: Log4J Users List; [EMAIL PROTECTED]
Subject: Re: Use Log4j from javascript?

Unless you have Java running on the client (an applet) I don't think there
is a good way to have JavaScript log messages to log4j.  The only other way
that comes to mind is to have Javascript send the message to a servlet (or
JSP) which sends the message to log4j.

On Thu, 31 Mar 2005 11:10:19 -0500, Joe Polanik <[EMAIL PROTECTED]>
wrote:
> I have a Java/JSP application. The backend uses log4j and the JSP 
> frontend uses the log taglib from jakarta. I'd like the javascript on 
> this page to be able to log messages also.
> 
> Is that possible?
> 
> Joseph Polanik
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


--
James Stauffer
Are you good? Take the test at http://www.livingwaters.com/good/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to