Hi there,
I'm using Log4r in my rails projects. On log.error an email is sent using
the EmailOutputter.
I know changed the EmailOutputter to include a global var in the subject
(MDC) since the subject is normally static.
I want to set this var to the exception message, so it is sent as the
subject.
Can anyone tell me how to do this in rails?
Basically:
raise e or some other cause
> -> Log4r::MDC.put('subject', e.message)
> continue with the exception
I found *rescue_from* but it just gives it to the handler and then stops.
Thanks a lot,
Christoph
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/rubyonrails-talk/7baf66e8-c61c-4757-90b1-3c9712f6297b%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.