On Thu, 13 Sep 2001, Abhijat Thakur wrote:
> I have gone through the archives and have looked at the original responses
> and tried it but my System.err.println does not go to /logs/tomcat.log. I am
> using log4j for logging but at some place have to put System.err.println
> statements which i want should be printed to tomcat logs.
why not use servlet.log() if you want that functionality? afaik routing
System.err.println is not covered by the spec (but I may be wrong), and so
you will be relying on specific container bahaviour.
alternatively on unix you could just redirect stderr to whichever file you
wanted.
hth,
cheesr
dim
>
> I have made modifications to server.xml and it has
>
> <Logger name="tc_log"
> verbosityLevel = "INFORMATION"
> path="logs/tomcat.log"
> />
>
> <Logger name="servlet_log"
> path="logs/servlet.log"
> verbosityLevel = "DEBUG"
> />
>
> <Logger name="JASPER_LOG"
> path="logs/jasper.log"
> verbosityLevel = "INFORMATION" />
>
> The three are files are made under logs but my System.err.println messages
> dont go there. Please advise.
>
> Thanks a lot.
>
>
> Abhijat Thakur
>
> bDNA Corporation
>
>