Git Product home page Git Product logo

nhibernate.logging's Introduction

NHibernate Logging Providers

The current version 1.3.3 is avialable as NuGet package. This version is built against NHibernate 3.3.3 and Common.Logging 2.1.2.

Project Description

NHibernate Logging Providers makes it possible to use your favourite logger with NHibernate. You no longer have to use log4net. The new NHibernate (since NH3) logging abstraction makes this possible. The providers are developed in C# using .NET 3.5.

Available Logging Providers

The current release contains log providers for the following logging frameworks.

Common.Logging 2.1.2 supports several other logging frameworks. So you can use each of them with NHibernate via Common.Logging 2.1.1 abstraction.

The following logging frameworks are supported by Common.Logging 2.1.2:

  • System.Console
  • System.Diagnostics.Trace
  • Log4Net 1.2.9
  • Log4Net 1.2.10
  • Log4Net 1.2.11
  • NLog 1.0
  • NLog 2.0
  • Enterprise Library 3.1 Logging
  • Enterprise Library 4.1 Logging
  • Enterprise Library 5.0 Logging

Review the NHibernate Wiki for additional informations. Please leave a comment if you like it or not. ;-)

NuGet available

The repository contains a *.nuspec file for creating a NuGet package since the last release. The file was created and contributed by Matthew Ferreira. Thanks again for the effort.

Getting Started

To use the Common.Logging 2.1 logging abstraction framework with NHibernate all you have to do is to copy the following Assemblies to you projects output directory:

  • Common.Logging.dll
  • NHibernate.Logging.CommonLogging.dll

Needless to say that you have to copy your loggers Assembly and the corresponding Common.Logging-Provider Assembly too. To enable the log provider you have to add the following lines to your Web.config or App.config:

<appSettings>
  <add key="nhibernate-logger" 
       value="NHibernate.Logging.CommonLogging.CommonLoggingLoggerFactory, NHibernate.Logging.CommonLogging"/>
</appSettings>

nhibernate.logging's People

Contributors

ramonsmits avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.