You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4net-dev@logging.apache.org by "Daniel Hernandez (JIRA)" <ji...@apache.org> on 2015/04/28 17:18:05 UTC

[jira] [Commented] (LOG4NET-463) No Log File Is Created When Using .NET Framework 4.5.1

    [ https://issues.apache.org/jira/browse/LOG4NET-463?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14517181#comment-14517181 ] 

Daniel Hernandez commented on LOG4NET-463:
------------------------------------------

The issue was fixed it with the following code in global.asax.cs

 In the Application_Start() method point to the location of the log4net file like this:

 System.IO.FileInfo log4netFI = new System.IO.FileInfo(HttpRuntime.AppDomainAppPath+"\\log4net.config");
 log4net.Config.XmlConfigurator.ConfigureAndWatch(log4netFI);


> No Log File Is Created When Using .NET Framework 4.5.1
> ------------------------------------------------------
>
>                 Key: LOG4NET-463
>                 URL: https://issues.apache.org/jira/browse/LOG4NET-463
>             Project: Log4net
>          Issue Type: Bug
>          Components: Other
>    Affects Versions: 1.2.13
>         Environment: Windows 7 Enterprise 64 bit OS
> .NET Framework 4.5.1
>            Reporter: Daniel Hernandez
>            Assignee: Dominik Psenner
>
> I read all about the 2 following bug reports:
> - LOG4NET - 451
> - LOG4NET - 452
> I still cannot get log4net to create/write to a log file.  My web forms C# app compiles fine in Visual Studio 2013.  I don't get any errors when I run my app, I just don't see the log file get created.
> In the NuGet Manager I installed log4net[1.2.13] but I noticed that on the right hand side where the description of the package resides, I see:
> Created by: Apache Software Foundation
> Id: log4net
> Version: 2.0.3
> so is 1.2.13 the version of the NuGet package not the version of log4net?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)