Generally it is good idea to configure logging system as early as possible to 
avoid such problem. Good place is Main() method of the class which starts the 
whole application.
Radovan

________________________________
Od: Dominik Psenner [mailto:[email protected]]
Odesláno: 10. dubna 2013 10:29
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 is setup correctly (I 
have used log4net in the past)" without being sure can cause embarassing 
reactions. :)

Cheers,
D.

________________________________
From: El Tigre [mailto:[email protected]]
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:

public Form1()
        {
            InitializeComponent();
            XmlConfigurator.Configure();
         }

NOw it works! thank you for help!

Reply via email to