log4j & crontab

V

Vuk

when i implement crontab in my application his log4jjcrontab.properties
overrides my log4j.properties
 
D

daniellauzon2002

Le mercredi 17 novembre 2004 08:03:19 UTC-5, Vuk a écrit :
when i implement crontab in my application his log4jjcrontab.properties overrides my log4j.properties

Not sure if we have the same problem but my app logs nicely when I launch it myself from the command line but fails to log when I let crontab launch it.
 
L

Lars Enderin

2012-09-13 15:47, (e-mail address removed) skrev:
Le mercredi 17 novembre 2004 08:03:19 UTC-5, Vuk a écrit :

Not sure if we have the same problem but my app logs nicely when I launch it myself from the command line but fails to log when I let crontab launch it.
In a crontab script you have to spell out the full path to executables,
or explicitly set the value of PATH to a suitable value similar to your
own PATH when logged in.
 
S

shyalika

Le mercredi 17 novembre 2004 08:03:19 UTC-5, Vuk a écrit :




Not sure if we have the same problem but my app logs nicely when I launchit myself from the command line but fails to log when I let crontab launchit.

I have the same problem when executing a jar file via cron job. It does notlog the app logs implemented with log4j. Does anyone know the answer to why?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,481
Members
44,900
Latest member
Nell636132

Latest Threads

Top