Skip to content

Commit

Permalink
Added an example on how to use the injected records to build the message
Browse files Browse the repository at this point in the history
Signed-off-by: Armin Ronacher <armin.ronacher@active-4.com>
  • Loading branch information
brainstorm authored and mitsuhiko committed Apr 18, 2011
1 parent 54516c8 commit 63aafcb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions logbook/handlers.py
Expand Up @@ -982,6 +982,7 @@ class MailHandler(Handler, StringFormatterHandlerMixin,
Subject: {record.level_name} on My Application
{record.message}
{record.extra[a_custom_injected_record]}
''')
This handler will always emit text-only mails for maximum portability and
Expand Down

0 comments on commit 63aafcb

Please sign in to comment.