Maybe try this:
What I do is create a 'sub' that is called with the message and debug level, that way if I'm in test mode I get all the errors, and in production only important errors. The 'sub' adds the pid ($$) to the error message.syslog (@{[ LOGINFO ]}, "[$$] started and daemonised");
Regards...Ed
"Well done is better than well said." - Benjamin Franklin
In reply to Re: Numeric values required in Unix::Syslog?
by flexvault
in thread Numeric values required in Unix::Syslog?
by spoovy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |