Thanks Andrew and George for your feedback. I expected that log4net works
with .NET 4.5 - except for some cases that are covered in the migration
article from microsoft. Please post a sample project that does not work and
then maybe we are able to trace what's going wrong.
2013/4/9 George Chung
Some code:
using log4net;
using log4net.Config;
public partial class Login
{
private static readonly log4net.ILog log =
log4net.LogManager.GetLogger(typeof(Login));
UserServices usrsrv = new UserServices();
}
private void Form1_Load(object sender, EventArgs e)
That command is not working on the new 1.2.1.1...
I didn't know I have to run such a command..
Can you give an example for my project and my version of log4net?
@logging.apache.org; 'El Tigre'
el_tigre...@yahoo.com
Sent: Wednesday, April 10, 2013 10:24 AM
Subject: RE: Log4net NOT working on .net 4.5
http://logging.apache.org/log4net/release/manual/configuration.html
RTFM
PS: no offense meant J
From:El Tigre
Did you place that statement outside of any method or constructor?
_
From: El Tigre [mailto:el_tigre...@yahoo.com]
Sent: Wednesday, April 10, 2013 9:34 AM
To: Log4NET User
Subject: Re: Log4net NOT working on .net 4.5
with all respect, but I read the manual and the configuration
GOT it... had to put the initialize method din the constructor without
parameters:
public Form1()
{
InitializeComponent();
XmlConfigurator.Configure();
}
NOw it works! thank you for help!
embarassing reactions. :-)
Cheers,
D.
_
From: El Tigre [mailto:el_tigre...@yahoo.com]
Sent: Wednesday, April 10, 2013 10:08 AM
To: Log4NET User
Subject: Re: Log4net NOT working on .net 4.5
GOT it... had to put the initialize method din the constructor without
parameters
Komu: 'Log4NET User'; 'El Tigre'
Předmět: RE: Log4net NOT working on .net 4.5
I'm glad you finally worked it out and I hope you learned something. In the
future you should consult the manuals and check if you're doing things how it's
written down in the manuals. Posting something like all
I tried to make log4net work in my application with .net 4.5. It doesn't give
me an error but I don't see the log file
I made all the changes, imported all things but no success...
to trace what's going on. All those steps should be
covered in the FAQ section on the website.
Cheers,
D.
_
From: El Tigre [mailto:el_tigre...@yahoo.com]
Sent: Tuesday, April 09, 2013 12:24 PM
To: log4net-user@logging.apache.org
Subject: Log4net NOT working on .net 4.5
I tried
: Tuesday, April 09, 2013 1:35 PM
To: 'Log4NET User'; 'El Tigre'
Subject: RE: Log4net NOT working on .net 4.5
Hi,
You provide not enough information so that someone could help you finding out
what's wrong. If you referenced the log4net DLL,
configured the appenders properly and are writing
I know it's not officially supported...
This is from internal logging:
log4net: log4net assembly [log4net, Version=1.2.11.0, Culture=neutral,
PublicKeyToken=669e0ddf0bb1aa2a]. Loaded from [c:\Users\El
Tigre\Documents\Visual Studio
All is setup correctly (I have used log4net in the past) but is not working
for my project with .net 4.5
And I must use .net 4.5
I use log4net with .NET 4.5 all the time without problem.
The most common cause for no log file that I've heard of is that you build
against one version of log4net and run against a different one, or have the
wrong bindingRedirects in your .config file.
--
Andrew Arnott
I [may] not agree with
14 matches
Mail list logo