Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 164813
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T11:48:38+00:00 2026-05-11T11:48:38+00:00

We are trying to integrate NHibernate as our OR/M, however, we are currently using

  • 0

We are trying to integrate NHibernate as our OR/M, however, we are currently using Enterprise Library’s logging application block. I know that NHibernate uses log4net to log. Does anyone have any example on how to use Enterprise Library to log NHibernate related logs?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T11:48:39+00:00Added an answer on May 11, 2026 at 11:48 am

    Write your own log4net appender that writes to a EL logger. It’s an adapter pattern.

    inherit a new/custom appender class from log4net.Appender.AppenderSkeleton

    override the Append event handler from the skeleton class, and in it show the RenderedMessage, something like this:

    using System; using log4net; using System.Windows.Forms;  namespace MyAppender {     public class CustomAppender : log4net.Appender.AppenderSkeleton     {         protected override void Append(log4net.spi.LoggingEvent log)         {             // log to EL logger based on log properties.         }     } } 

    you then need to configure log4net config file….

    <?xml version='1.0' encoding='utf-8' ?> <configuration>     <log4net>         <appender name='MyAppender' type='MyAppender.CustomAppender,CustomAppender'>             <threshold value='DEBUG'/>         </appender>          <root>             <level value='DEBUG' />                 <appender-ref ref='MyAppender' />         </root>     </log4net> </configuration> 

    I have not tested this, but it should get you going.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a library that was written using nHibernate and I am trying to
I am trying to integrate facebook with in my asp.net mvc web application using
Im trying to integrate FBConnect to my application and want to know if the
We are trying to integrate tests in our daily builds using TestComplete, so far
I am trying to integrate NHibernate into an existing application with several hundred tables.
I'm trying to integrate bean validation using hibernate validator to my web application :
I am trying to integrate a Hibernate application into a proprietary framework. My problem
I'm trying to integrate Sugar CRM with one of my projects. I'm using Apache
I am trying to integrate NHibernate.Search into a multi-lingual website. Now, this website contains
I am trying to configure NHibernate on my console application in which I am

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.