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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0External logging to EventLog - is it possible?External logging to EventLog - is it possible?
Previous
 
Next
New Post
8/17/2009 7:50 AM
 

We are running DNN in a complex high-available solution (internet bank) which involves several Windows services, web services etc. besided the usual DNN site. As of today we have several different event logs spread across the solution, but we would like to centralize these and are thinking about the possibilities to use the DNN EventLog, mainly because we already have a viewer for this through DNN. Now, what would be the "best practice" method of doing this?

As it seems, the event log funtionality in DNN is designed to work in a DNN website, and seem to have been designed only to run in that context. This of course is not really be a suprise, as DNN is a CMS webbased CMS system. Does this mean that in order to utilize the DNN Event Log we would have to write our own Business Layer functions to interact with the EventLog stored procedures in the DNN DAL or is there a better way?

If you have any other ideas, comments, thought, experiences about this, feel free to post them here. Thanks.

 

 

 
New Post
8/17/2009 10:39 AM
 

I'm sure that you could get around this by adding references to the DotNetNuke.dll, but that is going to require additional items to be added to the web/application configuration files.

Your best bet might be to build a few simple methods that do the interaction as you mention.  Typically if I only need one little piece like this, I will deviate from the norm and do a custom item.

Now, your other option, would be to build a web service that is hosted inside of DNN and have that do the logging for you, passing the needed information to the web service.  This way it can do the native DNN calls, and you still keep it easy for communications.


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
8/17/2009 11:05 AM
 

Mitch Sellers wrote

 

Now, your other option, would be to build a web service that is hosted inside of DNN and have that do the logging for you, passing the needed information to the web service.  This way it can do the native DNN calls, and you still keep it easy for communications.

 

We have actually considered this approach as well but I am not sure about how "web service friendly" DNN is. Is it something that is officially supported kind of considering that DNN is mainly intended as a CMS, at least originaly? You can of course use Web services and DNN in parallel (we do that already), but I am not sure what support is there to use the web services in DNN. I know it can usually be all kind of problems with nested web.config etc. And what about shared PortalSettings etc, will it work without to much trouble?

 

Any pointers to best practice for Web services in DNN would be apprechiated.

 
New Post
8/18/2009 7:48 PM
 

Just a quick update on this, we decided to go with the Web Service solution which felt much cleaner than doing direct integration with the EventLog table in the Portal database. We decided to use the iWeb Web Service package, which seem very nice.

Anyway, one issue that has come up is how we should lable our external entries in the EventLog. DNN exposes the EventLogType (and ExceptionLogType) which contains a list of predefined values, but we are thinking that we should probably create our own types of EventLogTypes, but how would one go about to do that in a nice way? Is there a better way to do it than to hack the EventLogType enum, which doesnt really feel "best practice" and would require us to modify the DNN core?

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0External logging to EventLog - is it possible?External logging to EventLog - is it possible?


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