Brian,

Thanks for the response.  I think I may actually modify the Email Logger to
check for the existence of an Environment Property "To".  If it exists I
will use it.  Otherwise I'll have it use the property value specified in
the logger.  I'll prob submit this enhancement to the MachII team to see if
this is something they'd like to incorporate.  As far as only having the
logger turned on in production, this is something we do as well, but what
we did not want is to have a user encounter an error and us receive 50
email about the same thing.  Kinda figured we'd have to handle that in the
code but just thought I'd check.

On Mon, May 7, 2012 at 8:28 AM, Brian Klaas <[email protected]> wrote:

> Hi Derrick -
>
> I don't believe that setting a "To" property for the bundled
> MachIIEmailLog is possible. You have to define it in the logging config XML.
>
> You could clone the bundled MachII.logging.loggers.EmailLog.Logger, rename
> it to something else, modify it to pull the appropriate email address as a
> property from the environment, and point to that as your email logger in
> the logging config XML.
>
> The answer to question 2 is: you have to write the code yourself. The
> email logger will send an email each and every time an error message is
> generated. It's for this reason that we don't use the email logger in
> development but instead only turn it on in testing and production.
>
> brian
>
>
> On Wednesday, May 2, 2012 3:10:54 PM UTC-4, Derrick wrote:
>>
>> MachII-ers,
>>
>> I have two questions about the Email Loggers:
>>
>>
>>    1. Is there a way to set the "To" email logger property as an
>>    Environment property of development, staging, or production?  I want to be
>>    able to have email logging turned on but go to different email addresses
>>    based on the current environment.
>>    2. If an error occurs that triggers the email logger, outside of
>>    writing the code myself, is there a way to prevent emails from the logger
>>    to be sent over and over again?
>>
>> Thanks
>>
>  --
> To post to this group, send email to
> [email protected]
> For more options and to unsubscribe, visit this group at
> http://groups.google.com/group/mach-ii-for-coldfusion?hl=en
>
> SVN: http://svn.mach-ii.com/machii/
> Wiki / Documentation / Tickets: http://trac.mach-ii.com/machii/
>

-- 
To post to this group, send email to [email protected]
For more options and to unsubscribe, visit this group at 
http://groups.google.com/group/mach-ii-for-coldfusion?hl=en

SVN: http://svn.mach-ii.com/machii/
Wiki / Documentation / Tickets: http://trac.mach-ii.com/machii/

Reply via email to