CodeCampServer don't input any logging from NHibernate? -
Have you ever used the CodeCampServer architecture to be successful in entering the NHibernate input?
I have read and I did everything that I can. Probably there is a problem in this architecture
I use Infrastructure.NHibernate.DataAccess.Bases.Logger.EnsureInitialized ();
Starting log4net. Code here:
Public Class Dependency Registrar {Private Stable Bull _ Dependency Registered; Private static void RegisterDependencies () {ObjectFactory.Initialize (x => x.Scan (y = & gt; {y.AssemblyContainingType & quot; DependencyRegistry & gt; (); y.AssemblyContainingType & lt; NaakRegistry & gt; ); Y.LookForRegistries (); y AddAllTypesOf & lt; IRequiresConfigurationOnStartup & gt; ();})); New InitiailizeDefaultFactories () Configure (); } Private Static Reidonly Object Sync = New Object (); Internal Zero Configure On Startup () {Infrastructure. NHibernate.DataAccess.bases.Logger.EnsureInitialized (); RegisterDependencies (); Var dependencies begin with = objectfactor.getAllevance & lt; IRequiresConfigurationOnStartup & gt; (); Foreign currency (reliance dependence dependency) initially {dependency.Configure (); }} Public stable t resolve & lt; T & gt; () Return to ObjectFactory.GetInstance & gt; (); } Resolution of public static object (type type model) {return ObjectFactory.GetInstance (modelType); } Public Stable Bole Registered (Type Type) {EnsureDependenciesRegistered (); Objectfeature Return The Gate Instance (Type)! = Null; } Public static void EnsureDependenciesRegistered () {if {lock (sync) {if {RegisterDependencies () (_dependenciesRegistered!) (_dependenciesRegistered!); _ Dependency = true; }}}}}
and I look at the logging files when I can not delete them when the app is running, I know they are generated, in addition, when I test Logging for, log input, for example, this code is logged in the input.
Bases.Logger.Debug (this, "debug test!")
So, is codeCampServer log4net?
post text after "itemprop =" text ">
The post seems right to me. Are you sure you add the necessary assembly level attribute? You might try:
[assembly: log4net.Config.XmlConfigurator (see = true)]
log4net.Config.XmlConfigurator.Configure ();
For example, if this does not work in your Application_Start of Global.asax, please post your example code.
Comments
Post a Comment