Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Email Notifciation when Exception was thrownEmail Notifciation when Exception was thrown
Previous
 
Next
New Post
7/13/2009 5:08 AM
 

Hi everybody,

i would like to know the common way to notify an admin in case of exception.

I tried to set the SendLogNotifications schedule to an intervall of 1 minute. Then I went to the event viewer -> edit log settings and configured the PAGE_LOAD_EXCEPTION to send emails. I set the threshold to 1 occurence in 1 second. Furhtermore I set host settings -> other settings -> scheduler mode to timer method. But this configuration doesn't notifies me every time a exception was thrown. I can see it in event log, but i didn't receive an email ever time.

Is there any other way to handle the notification, or is any setting wrong?

Thanks in advance,

matze

 
New Post
7/13/2009 8:30 AM
 

Hi,

now i found out, that setting the notificationthreshold value in theEventsNotification table to 0, enables me to get an email immediatly. But this value isn't available at the edit screen for the threshold. I found that out by looking in the DBLoggingProvider in the WriteLog method. There you can find the following piece of code. But in my opinion that isn't a good way?? What are your configurations regarding this issue? I would like to tell DNN to send me an email immediatly after an exception

  objLogTypeConfigInfo.EmailNotificationIsActive = True Then

 

Try

lockNotif.AcquireWriterLock(ReaderLockTimeout)

 

If objLogTypeConfigInfo.NotificationThreshold = 0 Then

 

Mail.Mail.SendMail(objLogTypeConfigInfo.MailFromAddress, _

objLogTypeConfigInfo.MailToAddress,

 

 

Dim str As String = objLogQueueItem.LogInfo.Serialize()"", "Event Notification", str, _"", "", "", "", "", "")ElseIf objLogTypeConfigInfo.LogTypeKey <> "LOG_NOTIFICATION_FAILURE" Then

 

'pending log notifications go here

 

End If

 

Finally

lockNotif.ReleaseWriterLock()

 

End Try

 

End If

If

 
New Post
7/13/2009 12:57 PM
 

I think this is about caching. If you turn on log caching (Host Settings) then the log will buffer events. That protects your site against suffering from poor performance in situations where a lot of logging occurs. Like might happen if there is a really bad error on your site!

I suggest treading carefully. If the exception is because e-mailing is not working then you could get caught in a Cartesian death loop, opening up a rip in the time-space continuum and causing everyone using DNN to fall in.

Or maybe not. But you could suffer from filling the database or log file.

You are perhaps better to use caching to 'gather up' the exceptions into more mangeable chunks to avoid a runaway situation.

 
New Post
7/13/2009 4:07 PM
 

Hi Andrew, thanks for your response.

Under host the "enable event log buffer" flag is off. But I didn't receive the emails as supposed.

Now I compared the DBLoggingProvider and the XMLLoggingProvider and it seems to me as the DBLoggingProvider doesn't support the full functionality in Version 4.9.3 regarding the email notification.  Am I right?

 
New Post
7/14/2009 4:42 AM
 

I am quite sure, dblogging provider does support sending notifications as well, though triggered differently.

Please review scheduler settings for sending event notifications.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Email Notifciation when Exception was thrownEmail Notifciation when Exception was thrown


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out