# ActionMailer and logging

**URL:** <https://www.ruby-forum.com/t/actionmailer-and-logging/109197>\
**Category:** Rails\
**Created:** [July 12, 2007, 10:57am UTC](https://www.ruby-forum.com/t/actionmailer-and-logging/109197 "2007-07-12T10:57:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hleroy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/a5b964/32.png) [@hleroy](https://www.ruby-forum.com/u/hleroy)\
**Post date:** [July 12, 2007, 10:57am UTC](https://www.ruby-forum.com/t/actionmailer-and-logging/109197/1 "2007-07-12T10:57:27Z")

</div>

Hi,

My web app is mailing a lot of PDF attachments (invoices), thru  
ActionMailer.

Pb is, ActionMailer dumps the contents of each PDF into my log. I’d like  
to keep trace of mail sent â€” but silence the logger regarding the  
attachments content. Any clue on how to achieve that?

TIA,

Hugues.
