Email Logging

13 views
Skip to first unread message

Derrick Jackson

unread,
Jun 13, 2012, 2:41:46 PM6/13/12
to mach-ii-for...@googlegroups.com
Folks,

I seem to be having an issue with the Email Logger in 1.9.0 BER - Build 2823.  I am using all three loggers in my application and right now the EmailLogger and MachIICFLogger are enabled in my development group.  In one of my listeners I am calling getLog().error("While trying to login #emailAddress# on #DateFormat(Now(),'m/d/yyyy')# at #TimeFormat(Now(),'h:mm tt')# an error occured.",cfcatch) inside of the <cfcatch> block of my try/catch.  When an error occurs the proper log message and the additional information from the getLog() are being written to the CF Log.  However, this is not generating an email to me via the Logger. Am I misunderstanding how the getLog() method works and why wouldnt and email be generated even without the additional information from the getLog()?

Here is the email Logger config information:

<parameter name="EmailLog">

<struct>

<key name="type" value="MachII.logging.loggers.EmailLog.Logger" />

<key name="mailType" value="html" />

<key name="loggingEnabled">

    <struct>

    <key name="group:development" value="true"/>

          <key name="group:production" value="true"/>

          <key name="group:staging" value="true"/>

            </struct>

        </key>

<key name="loggingLevel" value="warn" />

<key name="loggingLevelEmailTrigger" value="warn" />

<key name="mailType" value="text/html" />

<key name="to" value="der...@someemailaddress.com" />

<key name="from" value="derrick@someemailaddress.com" />

<key name="subject" value="Application Error Log" />

</struct>

</parameter>  

Peter J. Farrell

unread,
Jun 13, 2012, 4:02:10 PM6/13/12
to mach-ii-for...@googlegroups.com

Have you checked that the mail isn't in the undelivered folder?  Typically, this is most common problem.


Derrick Jackson said the following on 06/13/2012 01:41 PM:
--
To post to this group, send email to mach-ii-for...@googlegroups.com
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/


-- 
Peter J. Farrell
OpenBD Steering Committee / Mach-II Lead Developer
pe...@mach-ii.com
p...@maestropublishing.com
http://blog.maestropublishing.com
Identi.ca / Twitter: @maestrofjp

Derrick Jackson

unread,
Jun 13, 2012, 5:05:38 PM6/13/12
to mach-ii-for...@googlegroups.com
I did.  Now one thing i have not tried is dropping down to 1.9.0 RC2 to see if the problem still occurs.  I'll do that and get back to the group.

Derrick Jackson

unread,
Jun 14, 2012, 5:28:59 AM6/14/12
to mach-ii-for...@googlegroups.com
Morning All,

I downgraded my version of M2 to 1.9.0 RC2 and the getLog() method call inside my listener worked like a charm.
Reply all
Reply to author
Forward
0 new messages