Re: [nhusers] Re: log4net not logging in SPA site .Net 4.5.2

2016-03-04 Thread Oskar Berggren
2016-03-03 19:22 GMT+00:00 Steve Lyle :

> Oh.  And this too.
> In Web.config change   ** to   * debug="true">*
>


Maybe you know this already, but just in case, that flag is for debugging
log4net itself and should normally be false in production code. It does not
affect log4nets handling of DEBUG-logs from your code.

/Oskar




>
>
> On Thursday, March 3, 2016 at 12:31:07 PM UTC-5, Steve Lyle wrote:
>
>> From the screen attached I think you should be able to see all of
>> interest.
>> - Web.Config.
>> - The call to log4net.Config.BasicConfigurator.Configure() immediately
>> before calling anything nHibernate.
>> - Debug output
>>
>> My entire solution is available to you to pull down from github.
>> sslyle /*StevesNHibernatePlayground
>> *
>> This regards the QuickStart solution.
>>
>> log4net fails for either of the two aps.net projects but works fine for
>> the winform (NHibernateTutorialPart1)
>>
>> Your thoughts and input are respected and appreciated.
>>
>>
>>
>> --
> You received this message because you are subscribed to the Google Groups
> "nhusers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to nhusers+unsubscr...@googlegroups.com.
> To post to this group, send email to nhusers@googlegroups.com.
> Visit this group at https://groups.google.com/group/nhusers.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to nhusers+unsubscr...@googlegroups.com.
To post to this group, send email to nhusers@googlegroups.com.
Visit this group at https://groups.google.com/group/nhusers.
For more options, visit https://groups.google.com/d/optout.


[nhusers] Re: log4net not logging in SPA site .Net 4.5.2

2016-03-03 Thread Steve Lyle
Oh.  And this too.
In Web.config change   ** to   **


On Thursday, March 3, 2016 at 12:31:07 PM UTC-5, Steve Lyle wrote:
>
> From the screen attached I think you should be able to see all of interest.
> - Web.Config.
> - The call to log4net.Config.BasicConfigurator.Configure() immediately 
> before calling anything nHibernate.
> - Debug output
>
> My entire solution is available to you to pull down from github.
> sslyle /*StevesNHibernatePlayground 
> *
> This regards the QuickStart solution.
>
> log4net fails for either of the two aps.net projects but works fine for 
> the winform (NHibernateTutorialPart1)
>
> Your thoughts and input are respected and appreciated.
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to nhusers+unsubscr...@googlegroups.com.
To post to this group, send email to nhusers@googlegroups.com.
Visit this group at https://groups.google.com/group/nhusers.
For more options, visit https://groups.google.com/d/optout.


[nhusers] Re: log4net not logging in SPA site .Net 4.5.2

2016-03-03 Thread Steve Lyle
This is the last I will put to this subject.
This enabled log4net to log to the console.
At least it is a beginning and now documented.

--- Global.aspx.cs -
using System.Web;
using System.Web.Http;
using System.Web.Mvc;
using System.Web.Optimization;
using System.Web.Routing;
using System.IO; / add this line
using log4net; / add this line

namespace MyMVCApp
{

public class MvcApplication : HttpApplication
{
private static readonly ILog log = LogManager.GetLogger("console");  
/ 
add this line
protected void Application_Start()
{
//log4net.Config.BasicConfigurator.Configure();  /// 
 remark this out
log4net.Config.XmlConfigurator.Configure(new 
FileInfo(Server.MapPath("~/Web.config")));  /  add this line
AreaRegistration.RegisterAllAreas();
GlobalConfiguration.Configure(WebApiConfig.Register);
FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
RouteConfig.RegisterRoutes(RouteTable.Routes);
BundleConfig.RegisterBundles(BundleTable.Bundles);
}
}
}



On Thursday, March 3, 2016 at 12:31:07 PM UTC-5, Steve Lyle wrote:
>
> From the screen attached I think you should be able to see all of interest.
> - Web.Config.
> - The call to log4net.Config.BasicConfigurator.Configure() immediately 
> before calling anything nHibernate.
> - Debug output
>
> My entire solution is available to you to pull down from github.
> sslyle /*StevesNHibernatePlayground 
> *
> This regards the QuickStart solution.
>
> log4net fails for either of the two aps.net projects but works fine for 
> the winform (NHibernateTutorialPart1)
>
> Your thoughts and input are respected and appreciated.
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to nhusers+unsubscr...@googlegroups.com.
To post to this group, send email to nhusers@googlegroups.com.
Visit this group at https://groups.google.com/group/nhusers.
For more options, visit https://groups.google.com/d/optout.


[nhusers] Re: log4net not logging in SPA site .Net 4.5.2

2016-03-03 Thread Steve Lyle
Sorry try this 
insted https://github.com/sslyle/StevesNHibernatePlayground.git



On Thursday, March 3, 2016 at 12:31:07 PM UTC-5, Steve Lyle wrote:
>
> From the screen attached I think you should be able to see all of interest.
> - Web.Config.
> - The call to log4net.Config.BasicConfigurator.Configure() immediately 
> before calling anything nHibernate.
> - Debug output
>
> My entire solution is available to you to pull down from github.
> sslyle /*StevesNHibernatePlayground 
> *
> This regards the QuickStart solution.
>
> log4net fails for either of the two aps.net projects but works fine for 
> the winform (NHibernateTutorialPart1)
>
> Your thoughts and input are respected and appreciated.
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to nhusers+unsubscr...@googlegroups.com.
To post to this group, send email to nhusers@googlegroups.com.
Visit this group at https://groups.google.com/group/nhusers.
For more options, visit https://groups.google.com/d/optout.