>>> Amit k Gupta <[EMAIL PROTECTED]> 09-Mar-01 3:52:38 PM >>>
>Is there any method defined in servlet API to
>find out the servlet container's log file. I do
>not want to hard code the name of the file in my
>code because I might be running the same servlet
>within different servlet  containers.

There is no method that will do what you want. There's a good reason
why:

  the log file might not actually be a "file"

It could be a stream connected to an operating system logging system
like the Event Viewer on NT or the syslog facility on unices; it could
be a memory based system, or just the console.

Therefore, since there might be no file, you can't get the name of
it.

You should try to design your app so that it doesn't need to use a
log-file filename.

Why are you trying to manipulate the log file?


Nic Ferrier

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to