Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Log4perl Email appender problem

by basiliscos (Monk)
on Jun 27, 2014 at 21:44 UTC ( #1091515=note: print w/ replies, xml ) Need Help??


in reply to Log4perl Email appender problem

Hello Monk!

After researching the same I came to decision, that it is more convenient to use MailSendmail: it uses the system command "sendmail" and just puts the mail into local MTA queue. The last is responsible for actual settings, mail re-transmission on temporal network failures etc.

In Debian and many other linux distros there is Exim and other MTAs, which almost "just work" out of the box. So, now it is sysdadmin responsibility to setup MTA, not my as developer.

Here is my setting for that

log4perl.appender.Email=Log::Dispatch::Email::MailSendmail log4perl.appender.Email.to=a@b.com log4perl.appender.Email.from=c@d.com log4perl.appender.Email.min_level=warn log4perl.appender.Email.layout=Log::Log4perl::Layout::PatternLayout log4perl.appender.Email.layout.ConversionPattern=[%r::%p/%P] %c{1} (%L +) :: %m%n log4perl.appender.Email.buffered = 0


Comment on Re: Log4perl Email appender problem
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1091515]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (7)
As of 2014-12-25 22:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (163 votes), past polls