>Number: 4148
>Category: mod_jserv
>Synopsis: log() doesn't work
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: jserv
>State: open
>Class: sw-bug
>Submitter-Id: apache
>Arrival-Date: Fri Mar 26 10:20:02 PST 1999
>Last-Modified:
>Originator: [EMAIL PROTECTED]
>Organization:
apache
>Release: 1.3.4 + 1.0b2
>Environment:
Linux, RH 5.1, kernel 2.035, JDK 1.1.6, JSDK 2.0
>Description:
I changed all "trace." directives to "log." and
specified "log.file=3D/tmp/jserv.log"
in /usr/local/apache/conf/jserv.properties.
General servlet logging works as specified by
the log.channel directives, but the log() method
does not work from within any of my servlet
methods.
Perhaps there is a log.channel.log directive
that needs to be set to "true"?
>How-To-Repeat:
Try using the log("any message") method from within
any servlet method.
>Fix:
Sorry, I don't have any suggestions.
>Audit-Trail:
>Unformatted:
Please see JServLogChannels.java. It has a channel CH_SERVLET_LOG for servl=
et logging.
So the inclusion of the =
log.channel.servletLog=3Dtrue =
in the jserv.properties file should solve the problem.
For Developers, this channel should be enabled in the default jserv.propert=
ies file.
Thanks,
Paddy Ramanathan
[In order for any reply to be added to the PR database, ]
[you need to include <[EMAIL PROTECTED]> in the Cc line ]
[and leave the subject line UNCHANGED. This is not done]
[automatically because of the potential for mail loops. ]
[If you do not include this Cc, your reply may be ig- ]
[nored unless you are responding to an explicit request ]
[from a developer. ]
[Reply only with text; DO NOT SEND ATTACHMENTS! ]