-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Harsimranjit,
On 4/8/2011 3:18 PM, Harsimranjit singh Kler wrote:
> Whenever i am deleting log files(catalina,localhost etc log files) from
> tomcat_home\logs path.These are not auto genrating .Everytime i need to
> restart tomcat to get thise files i dont want this.Any solution to this?
Yes: stop deleting the log files.
> Same problem with my application logs i am using SLF4J and logback to
> genrate logs.once application log files removed i need to restart tomcat to
> regenrate.
You should configure SLF4J to perform log file rolling for you, instead
of trying to (evidently) do it yourself.
> Problem with Linux only window not alow to delete log files in use. please
> update if anything i can configure to overcome this
Step 1: stop logging things to stdout/stderr
Step 2: configure Tomcat's loggers to roll on whatever schedule you like
http://tomcat.apache.org/tomcat-7.0-doc/logging.html
Step 3: configure your application loggers to roll on whatever schedule
you like
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk2fdk4ACgkQ9CaO5/Lv0PBdfwCcDhsQ5lWRIk9pFi2reixJZT5U
KccAoKqhvB35Hsof8aZyfUSU7aDwDNM3
=+dcg
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]