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...Building ExtensionsBuilding ExtensionsModulesModulesImproving the Event Viewer by storing LogProperties as XMLImproving the Event Viewer by storing LogProperties as XML
Previous
 
Next
New Post
5/21/2012 12:55 PM
 

I'm amazed that in the DNN SQL EventLog table that the LogProperties still uses ntext when it stores an XML value. 

I want to improve the event log reporting functionality but I really need to have the LogProperties stored as typed xml.

In my module I'm proposing the idea of adding a new column to the EventLog table.  I would create a persisted computed column which converts the ntext into typed xml using a schema I've created. 

 

I've now got this working ok in my test environment and can now query the logproperties on the event table very quickly using xquery.

However, I'm wondering are there any pitfalls to extending the EventLog table in this way?  Will updates to the DNN core remove the computed column?  Will the the core ever write text to the LogProperties column than doesn't follow the standard?

Thanks for any input to this.

Ross

Update: I know I could create a View which has the convert to XML in it, however, in my trial in a small DNN portal its 10 times slower (all cpu time) due to the on the fly convertion of the xml field on each row).

 
New Post
5/21/2012 6:13 PM
 
please log this as an enhancement to support.dotnetnuke.com (the field is ntext as it was designed for sql 2000, and needs updated for sql 2005) - and yes, there is a danger in doing core updates, if we refresh/update the stored procedures that read/write to the EventLog then the types will be out of sync and fail

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
5/21/2012 9:15 PM
 
my mein problem with the event viewer: it drops all line breaks in the text, making reading as hard as possible...

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesImproving the Event Viewer by storing LogProperties as XMLImproving the Event Viewer by storing LogProperties as XML


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