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

HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...Records not being written to the event logRecords not being written to the event log
Previous
 
Next
New Post
3/18/2010 10:37 AM
 

What would keep records from not being written to the event log?

This is the code I am using:
  Dim elc As New DotNetNuke.Services.Log.EventLog.EventLogController()
  elc.AddLog("Name", sMsg, PortalSettings, -1, DotNetNuke.Services.Log.EventLog.EventLogController.EventLogType.ADMIN_ALERT)

The code writes records to the event log in two DNN v04.08.02 portals, but does not work in a v05.02.01 portal. (In the past, this v05 portal has experienced some security issues. I don’t know if this is related to the event log problem.)

I would be grateful for any ideas.

Thanks!
 

 
New Post
3/25/2010 9:05 PM
 
there was an issue in older version of dotnetnuke where all issues were logged by default , ignoring the log type settings. This was resolved and changed back to the correct default (i.e. unlogged), so you must set up any event log types you need logged. AFAIR we updated the list of log entries in a recent version so I'd also recommend you upgrade to at least 5.2.3. Log in as the host (superuser) user. Go to the Admin -> Event viewer page. This will show a list of currently logged entries, and provide some filtering options as well as the ability to remove entries. Either hover over the downarrow icon to the left of the module title, or else scroll to the bottom of the page, and select the "Edit log settings" option. When this page opens you'll have the ability to edit existing settings or add a new log setting (e.g. perhaps for an event that is currently not logged).

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
3/31/2010 8:21 AM
 

Thanks so much for your thoughtful response.

I played with the Event Log Settings, ensuring the "Admin Alert" setting was actually being recorded. It was already "on" and tweaking the settings still did not record anything to the event log.

This problem seems to be localized to this one DNN site. It works fine on my development machine which is running the same DNN v5.2 code. Other events are being recorded; e.g., log in success, general exceptions.

Is there anything else I can check that might be site-specific? Any other ideas would be greatly appreciated.

 

 
New Post
3/31/2010 9:30 AM
 

I just figured it out...

The EventLogType.ADMIN_ALERT constant is wrong in the PA module I am using. The value is 37 and it should be 38 (not sure why it is different, but this is definitely the problem). The alerts are not being recorded because the value of 38 is the "Scheduler Stopped" log type. I added the scheduler log type to the event log settings and the messages started showing up.

Thanks for your help in leading me down the path to a fix.

 
Previous
 
Next
HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...Records not being written to the event logRecords not being written to the event log


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