RE: How to add an Appender to Log4net programmati cally at runtime ?
Nicko Cadell <[email protected]> Fri, 23 Jan 2004 00:49:21 -0000
| Newsgroups | gmane.comp.windows.dotnet.log4net.user |
|---|---|
| Message-ID | <[email protected]> |
This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C3E14A.BD26BF62 Content-Type: text/plain Vincent, I think what you want to do is only attach your appender to the root logger. By default this will be inherited by all your existing loggers as well as by newly created loggers. To do this you can write: ((log4net.Repository.Hierarchy.Hierarchy)log4net.LogManager.GetLoggerReposit ory()).Root.AddAppender(your appender here); If you still are having problems can you also post the version of log4net and the configuration file that you are using. Thanks, Nicko -----Original Message----- From: Vincent Daron [mailto:[email protected]] Sent: 22 January 2004 16:39 To: [email protected] Cc: 'Denis, Rich' Subject: RE: [Log4net-users] How to add an Appender to Log4net programmatically at runtime ? But when a new Logger is created, it receive some appenders, I just like to be include in this list .... I'll look into the code... Thanks _____ From: Denis, Rich [mailto:[email protected]] Sent: jeudi 22 janvier 2004 17:34 To: 'Vincent Daron' Subject: RE: [Log4net-users] How to add an Appender to Log4net programmatically at runtime ? You make perfect sense. Unfortunately I don't think that you can do what you are trying to do. You are only modifying the loggers that are known at the time you run your code. The only way I could think that you would get it to work is to somehow programmatically set the configuration file, but I am not sure how you would do this. Rich Denis perotsystems(tm) (972) 577-5869 Wk _____ From: Vincent Daron [mailto:[email protected]] Sent: Thursday, January 22, 2004 10:23 AM To: Denis, Rich Subject: RE: [Log4net-users] How to add an Appender to Log4net programmatically at runtime ? Thanks, but it did'nt solve my problem ... I'll try to be clearer, I've created an Appender, and I want to "Attach" it on all the Loggers at runtime. I want to Add it to the Appender specified in configuration file. I've found the following code since my first post : foreach(ILoggerRepository tmp in LoggerManager.GetAllRepositories()) { foreach(Logger tmp2 in tmp.GetCurrentLoggers()) { tmp2.AddAppender(theAppender); } } The problem with this approach is that all the assemblies loaded after this code do not log in My Appender (but they log in the appenders specified in configuration). If I load these assemblies before (by creating a dummy object for example), it run fine, and MyAppender receive every LoggingEvent... I can't do it for all the external assemblies of course .... Thanks for answer Sorry for my poor English ... Vincent _____ From: Denis, Rich [mailto:[email protected]] Sent: jeudi 22 janvier 2004 17:01 To: 'Vincent Daron' Subject: RE: [Log4net-users] How to add an Appender to Log4net programmatically at runtime ? Try it without the MyAppender. i.e. log4net.Config.BasicConfigurator.Configure() Rich Denis perotsystems(tm) _____ From: Vincent Daron [mailto:[email protected]] Sent: Thursday, January 22, 2004 9:31 AM To: [email protected] Subject: [Log4net-users] How to add an Appender to Log4net programmatically at runtime ? Hi By using log4net.Config.BasicConfigurator.Configure(MyAppender) it run pretty fine, but I lost all the log4net configuration stored in the config file... Thanks for help Vincent ------_=_NextPart_001_01C3E14A.BD26BF62 Content-Type: text/html <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:v = "urn:schemas-microsoft-com:vml" xmlns:o = "urn:schemas-microsoft-com:office:office" xmlns:w = "urn:schemas-microsoft-com:office:word" xmlns:st1 = "urn:schemas-microsoft-com:office:smarttags"><HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"> <TITLE>Message</TITLE> <META content="MSHTML 6.00.2800.1276" name=GENERATOR><!--[if !mso]> <STYLE>v\:* { BEHAVIOR: url(#default#VML) } o\:* { BEHAVIOR: url(#default#VML) } w\:* { BEHAVIOR: url(#default#VML) } .shape { BEHAVIOR: url(#default#VML) } </STYLE> <![endif]--><o:SmartTagType name="time" namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><o:SmartTagType name="date" namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><o:SmartTagType name="PersonName" namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><!--[if !mso]> <STYLE>st1\:* { BEHAVIOR: url(#default#ieooui) } </STYLE> <![endif]--> <STYLE>@font-face { font-family: Tahoma; } @font-face { font-family: Trebuchet MS; } @font-face { font-family: Franklin Gothic Medium; } @page Section1 {size: 612.0pt 792.0pt; margin: 72.0pt 90.0pt 72.0pt 90.0pt; } P.MsoNormal { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman" } LI.MsoNormal { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman" } DIV.MsoNormal { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman" } H1 { FONT-SIZE: 16pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: Arial } H2 { FONT-SIZE: 14pt; MARGIN: 12pt 0cm 3pt; FONT-STYLE: italic; FONT-FAMILY: "Times New Roman" } H3 { FONT-SIZE: 13pt; MARGIN: 12pt 0cm 3pt; FONT-FAMILY: Arial } H5 { FONT-SIZE: 13pt; MARGIN: 12pt 0cm 3pt; FONT-STYLE: italic; FONT-FAMILY: "Times New Roman" } P.MsoNormalIndent { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt 36pt; FONT-FAMILY: "Times New Roman" } LI.MsoNormalIndent { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt 36pt; FONT-FAMILY: "Times New Roman" } DIV.MsoNormalIndent { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt 36pt; FONT-FAMILY: "Times New Roman" } P.MsoList { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt 18pt; TEXT-INDENT: -18pt; FONT-FAMILY: "Times New Roman" } LI.MsoList { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt 18pt; TEXT-INDENT: -18pt; FONT-FAMILY: "Times New Roman" } DIV.MsoList { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt 18pt; TEXT-INDENT: -18pt; FONT-FAMILY: "Times New Roman" } P.MsoListBullet { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt 18pt; TEXT-INDENT: -18pt; FONT-FAMILY: "Times New Roman"; mso-list: l9 level1 lfo1 } LI.MsoListBullet { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt 18pt; TEXT-INDENT: -18pt; FONT-FAMILY: "Times New Roman"; mso-list: l9 level1 lfo1 } DIV.MsoListBullet { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt 18pt; TEXT-INDENT: -18pt; FONT-FAMILY: "Times New Roman"; mso-list: l9 level1 lfo1 } P.MsoListNumber { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt 18pt; TEXT-INDENT: -18pt; FONT-FAMILY: "Times New Roman"; mso-list: l8 level1 lfo2 } LI.MsoListNumber { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt 18pt; TEXT-INDENT: -18pt; FONT-FAMILY: "Times New Roman"; mso-list: l8 level1 lfo2 } DIV.MsoListNumber { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt 18pt; TEXT-INDENT: -18pt; FONT-FAMILY: "Times New Roman"; mso-list: l8 level1 lfo2 } P.MsoList2 { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt 36pt; TEXT-INDENT: -18pt; FONT-FAMILY: "Times New Roman" } LI.MsoList2 { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt 36pt; TEXT-INDENT: -18pt; FONT-FAMILY: "Times New Roman" } DIV.MsoList2 { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt 36pt; TEXT-INDENT: -18pt; FONT-FAMILY: "Times New Roman" } P.MsoList3 { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt 54pt; TEXT-INDENT: -18pt; FONT-FAMILY: "Times New Roman" } LI.MsoList3 { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt 54pt; TEXT-INDENT: -18pt; FONT-FAMILY: "Times New Roman" } DIV.MsoList3 { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt 54pt; TEXT-INDENT: -18pt; FONT-FAMILY: "Times New Roman" } P.MsoList4 { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt 72pt; TEXT-INDENT: -18pt; FONT-FAMILY: "Times New Roman" } LI.MsoList4 { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt 72pt; TEXT-INDENT: -18pt; FONT-FAMILY: "Times New Roman" } DIV.MsoList4 { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt 72pt; TEXT-INDENT: -18pt; FONT-FAMILY: "Times New Roman" } P.MsoList5 { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt 90pt; TEXT-INDENT: -18pt; FONT-FAMILY: "Times New Roman" } LI.MsoList5 { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt 90pt; TEXT-INDENT: -18pt; FONT-FAMILY: "Times New Roman" } DIV.MsoList5 { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt 90pt; TEXT-INDENT: -18pt; FONT-FAMILY: "Times New Roman" } P.MsoListBullet2 { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt 36pt; TEXT-INDENT: -18pt; FONT-FAMILY: "Times New Roman"; mso-list: l7 level1 lfo3 } LI.MsoListBullet2 { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt 36pt; TEXT-INDENT: -18pt; FONT-FAMILY: "Times New Roman"; mso-list: l7 level1 lfo3 } DIV.MsoListBullet2 { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt 36pt; TEXT-INDENT: -18pt; FONT-FAMILY: "Times New Roman"; mso-list: l7 level1 lfo3 } P.MsoListBullet3 { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt 54pt; TEXT-INDENT: -18pt; FONT-FAMILY: "Times New Roman"; mso-list: l6 level1 lfo4 } LI.MsoListBullet3 { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt 54pt; TEXT-INDENT: -18pt; FONT-FAMILY: "Times New Roman"; mso-list: l6 level1 lfo4 } DIV.MsoListBullet3 { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt 54pt; TEXT-INDENT: -18pt; FONT-FAMILY: "Times New Roman"; mso-list: l6 level1 lfo4 } P.MsoListBullet4 { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt 72pt; TEXT-INDENT: -18pt; FONT-FAMILY: "Times New Roman"; mso-list: l5 level1 lfo5 } LI.MsoListBullet4 { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt 72pt; TEXT-INDENT: -18pt; FONT-FAMILY: "Times New Roman"; mso-list: l5 level1 lfo5 } DIV.MsoListBullet4 { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt 72pt; TEXT-INDENT: -18pt; FONT-FAMILY: "Times New Roman"; mso-list: l5 level1 lfo5 } P.MsoListBullet5 { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt 90pt; TEXT-INDENT: -18pt; FONT-FAMILY: "Times New Roman"; mso-list: l4 level1 lfo6 } LI.MsoListBullet5 { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt 90pt; TEXT-INDENT: -18pt; FONT-FAMILY: "Times New Roman"; mso-list: l4 level1 lfo6 } DIV.MsoListBullet5 { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt 90pt; TEXT-INDENT: -18pt; FONT-FAMILY: "Times New Roman"; mso-list: l4 level1 lfo6 } P.MsoListNumber2 { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt 36pt; TEXT-INDENT: -18pt; FONT-FAMILY: "Times New Roman"; mso-list: l3 level1 lfo7 } LI.MsoListNumber2 { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt 36pt; TEXT-INDENT: -18pt; FONT-FAMILY: "Times New Roman"; mso-list: l3 level1 lfo7 } DIV.MsoListNumber2 { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt 36pt; TEXT-INDENT: -18pt; FONT-FAMILY: "Times New Roman"; mso-list: l3 level1 lfo7 } P.MsoListNumber3 { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt 54pt; TEXT-INDENT: -18pt; FONT-FAMILY: "Times New Roman"; mso-list: l2 level1 lfo8 } LI.MsoListNumber3 { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt 54pt; TEXT-INDENT: -18pt; FONT-FAMILY: "Times New Roman"; mso-list: l2 level1 lfo8 } DIV.MsoListNumber3 { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt 54pt; TEXT-INDENT: -18pt; FONT-FAMILY: "Times New Roman"; mso-list: l2 level1 lfo8 } P.MsoListNumber4 { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt 72pt; TEXT-INDENT: -18pt; FONT-FAMILY: "Times New Roman"; mso-list: l1 level1 lfo9 } LI.MsoListNumber4 { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt 72pt; TEXT-INDENT: -18pt; FONT-FAMILY: "Times New Roman"; mso-list: l1 level1 lfo9 } DIV.MsoListNumber4 { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt 72pt; TEXT-INDENT: -18pt; FONT-FAMILY: "Times New Roman"; mso-list: l1 level1 lfo9 } P.MsoListNumber5 { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt 90pt; TEXT-INDENT: -18pt; FONT-FAMILY: "Times New Roman"; mso-list: l0 level1 lfo10 } LI.MsoListNumber5 { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt 90pt; TEXT-INDENT: -18pt; FONT-FAMILY: "Times New Roman"; mso-list: l0 level1 lfo10 } DIV.MsoListNumber5 { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt 90pt; TEXT-INDENT: -18pt; FONT-FAMILY: "Times New Roman"; mso-list: l0 level1 lfo10 } P.MsoTitle { FONT-WEIGHT: bold; FONT-SIZE: 16pt; MARGIN: 12pt 0cm 3pt; FONT-FAMILY: "Times New Roman"; TEXT-ALIGN: center } LI.MsoTitle { FONT-WEIGHT: bold; FONT-SIZE: 16pt; MARGIN: 12pt 0cm 3pt; FONT-FAMILY: "Times New Roman"; TEXT-ALIGN: center } DIV.MsoTitle { FONT-WEIGHT: bold; FONT-SIZE: 16pt; MARGIN: 12pt 0cm 3pt; FONT-FAMILY: "Times New Roman"; TEXT-ALIGN: center } P.MsoBodyText { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 6pt; FONT-FAMILY: "Times New Roman" } LI.MsoBodyText { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 6pt; FONT-FAMILY: "Times New Roman" } DIV.MsoBodyText { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 6pt; FONT-FAMILY: "Times New Roman" } P.MsoListContinue { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 6pt 18pt; FONT-FAMILY: "Times New Roman" } LI.MsoListContinue { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 6pt 18pt; FONT-FAMILY: "Times New Roman" } DIV.MsoListContinue { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 6pt 18pt; FONT-FAMILY: "Times New Roman" } P.MsoListContinue2 { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 6pt 36pt; FONT-FAMILY: "Times New Roman" } LI.MsoListContinue2 { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 6pt 36pt; FONT-FAMILY: "Times New Roman" } DIV.MsoListContinue2 { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 6pt 36pt; FONT-FAMILY: "Times New Roman" } P.MsoListContinue3 { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 6pt 54pt; FONT-FAMILY: "Times New Roman" } LI.MsoListContinue3 { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 6pt 54pt; FONT-FAMILY: "Times New Roman" } DIV.MsoListContinue3 { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 6pt 54pt; FONT-FAMILY: "Times New Roman" } P.MsoListContinue4 { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 6pt 72pt; FONT-FAMILY: "Times New Roman" } LI.MsoListContinue4 { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 6pt 72pt; FONT-FAMILY: "Times New Roman" } DIV.MsoListContinue4 { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 6pt 72pt; FONT-FAMILY: "Times New Roman" } P.MsoListContinue5 { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 6pt 90pt; FONT-FAMILY: "Times New Roman" } LI.MsoListContinue5 { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 6pt 90pt; FONT-FAMILY: "Times New Roman" } DIV.MsoListContinue5 { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 6pt 90pt; FONT-FAMILY: "Times New Roman" } P.MsoMessageHeader { FONT-SIZE: 12pt; BACKGROUND: #d9d9d9; MARGIN: 0cm 0cm 0pt 54pt; TEXT-INDENT: -54pt; FONT-FAMILY: "Times New Roman" } LI.MsoMessageHeader { FONT-SIZE: 12pt; BACKGROUND: #d9d9d9; MARGIN: 0cm 0cm 0pt 54pt; TEXT-INDENT: -54pt; FONT-FAMILY: "Times New Roman" } DIV.MsoMessageHeader { FONT-SIZE: 12pt; BACKGROUND: #d9d9d9; MARGIN: 0cm 0cm 0pt 54pt; TEXT-INDENT: -54pt; FONT-FAMILY: "Times New Roman" } P.MsoBodyText2 { FONT-SIZE: 10pt; MARGIN: 0cm 0cm 6pt; LINE-HEIGHT: 200%; FONT-FAMILY: "Times New Roman" } LI.MsoBodyText2 { FONT-SIZE: 10pt; MARGIN: 0cm 0cm 6pt; LINE-HEIGHT: 200%; FONT-FAMILY: "Times New Roman" } DIV.MsoBodyText2 { FONT-SIZE: 10pt; MARGIN: 0cm 0cm 6pt; LINE-HEIGHT: 200%; FONT-FAMILY: "Times New Roman" } P.MsoBodyText3 { FONT-SIZE: 8pt; MARGIN: 0cm 0cm 6pt; FONT-FAMILY: "Times New Roman" } LI.MsoBodyText3 { FONT-SIZE: 8pt; MARGIN: 0cm 0cm 6pt; FONT-FAMILY: "Times New Roman" } DIV.MsoBodyText3 { FONT-SIZE: 8pt; MARGIN: 0cm 0cm 6pt; FONT-FAMILY: "Times New Roman" } A:link { COLOR: blue; TEXT-DECORATION: underline } SPAN.MsoHyperlink { COLOR: blue; TEXT-DECORATION: underline } A:visited { COLOR: purple; TEXT-DECORATION: underline } SPAN.MsoHyperlinkFollowed { COLOR: purple; TEXT-DECORATION: underline } P.MsoAcetate { FONT-SIZE: 8pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: Tahoma } LI.MsoAcetate { FONT-SIZE: 8pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: Tahoma } DIV.MsoAcetate { FONT-SIZE: 8pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: Tahoma } P.titleheader { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 200%; FONT-FAMILY: "Trebuchet MS" } LI.titleheader { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 200%; FONT-FAMILY: "Trebuchet MS" } DIV.titleheader { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 200%; FONT-FAMILY: "Trebuchet MS" } P.sub-messageheader { FONT-SIZE: 10pt; BACKGROUND: #d9d9d9; MARGIN: 0cm 0cm 0pt 54pt; TEXT-INDENT: -54pt; FONT-STYLE: italic; FONT-FAMILY: "Times New Roman" } LI.sub-messageheader { FONT-SIZE: 10pt; BACKGROUND: #d9d9d9; MARGIN: 0cm 0cm 0pt 54pt; TEXT-INDENT: -54pt; FONT-STYLE: italic; FONT-FAMILY: "Times New Roman" } DIV.sub-messageheader { FONT-SIZE: 10pt; BACKGROUND: #d9d9d9; MARGIN: 0cm 0cm 0pt 54pt; TEXT-INDENT: -54pt; FONT-STYLE: italic; FONT-FAMILY: "Times New Roman" } P.sectionheader { FONT-SIZE: 16pt; BACKGROUND: #d9d9d9; MARGIN: 0cm 0cm 0pt 54pt; TEXT-INDENT: -54pt; FONT-FAMILY: "Franklin Gothic Medium" } LI.sectionheader { FONT-SIZE: 16pt; BACKGROUND: #d9d9d9; MARGIN: 0cm 0cm 0pt 54pt; TEXT-INDENT: -54pt; FONT-FAMILY: "Franklin Gothic Medium" } DIV.sectionheader { FONT-SIZE: 16pt; BACKGROUND: #d9d9d9; MARGIN: 0cm 0cm 0pt 54pt; TEXT-INDENT: -54pt; FONT-FAMILY: "Franklin Gothic Medium" } P.titleheader0 { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 200%; FONT-FAMILY: "Trebuchet MS" } LI.titleheader0 { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 200%; FONT-FAMILY: "Trebuchet MS" } DIV.titleheader0 { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 200%; FONT-FAMILY: "Trebuchet MS" } P.sub-messageheader0 { FONT-SIZE: 10pt; BACKGROUND: #d9d9d9; MARGIN: 0cm 0cm 0pt 54pt; TEXT-INDENT: -54pt; FONT-STYLE: italic; FONT-FAMILY: "Times New Roman" } LI.sub-messageheader0 { FONT-SIZE: 10pt; BACKGROUND: #d9d9d9; MARGIN: 0cm 0cm 0pt 54pt; TEXT-INDENT: -54pt; FONT-STYLE: italic; FONT-FAMILY: "Times New Roman" } DIV.sub-messageheader0 { FONT-SIZE: 10pt; BACKGROUND: #d9d9d9; MARGIN: 0cm 0cm 0pt 54pt; TEXT-INDENT: -54pt; FONT-STYLE: italic; FONT-FAMILY: "Times New Roman" } P.sectionheader0 { FONT-SIZE: 16pt; BACKGROUND: #d9d9d9; MARGIN: 0cm 0cm 0pt 54pt; TEXT-INDENT: -54pt; FONT-FAMILY: "Franklin Gothic Medium" } LI.sectionheader0 { FONT-SIZE: 16pt; BACKGROUND: #d9d9d9; MARGIN: 0cm 0cm 0pt 54pt; TEXT-INDENT: -54pt; FONT-FAMILY: "Franklin Gothic Medium" } DIV.sectionheader0 { FONT-SIZE: 16pt; BACKGROUND: #d9d9d9; MARGIN: 0cm 0cm 0pt 54pt; TEXT-INDENT: -54pt; FONT-FAMILY: "Franklin Gothic Medium" } SPAN.EmailStyle50 { COLOR: windowtext; FONT-FAMILY: Arial; mso-style-type: personal } SPAN.EmailStyle51 { COLOR: navy; FONT-FAMILY: Arial; mso-style-type: personal } SPAN.EmailStyle52 { COLOR: navy; FONT-FAMILY: Arial; mso-style-type: personal } SPAN.EmailStyle53 { COLOR: navy; FONT-FAMILY: Arial; mso-style-type: personal } SPAN.EmailStyle54 { COLOR: navy; FONT-FAMILY: Arial; mso-style-type: personal-reply } DIV.Section1 { page: Section1 } OL { MARGIN-BOTTOM: 0cm } UL { MARGIN-BOTTOM: 0cm } </STYLE> </HEAD> <BODY lang=EN-US vLink=purple link=blue> <DIV><FONT face=Arial color=#0000ff size=2><SPAN class=429434500-23012004>Vincent,</SPAN></FONT></DIV> <DIV><FONT face=Arial color=#0000ff size=2><SPAN class=429434500-23012004></SPAN></FONT> </DIV> <DIV><FONT face=Arial color=#0000ff size=2><SPAN class=429434500-23012004>I think what you want to do is only attach your appender to the root logger. By default this will be inherited by all your existing loggers as well as by newly created loggers. To do this you can write:</SPAN></FONT></DIV> <DIV><FONT face=Arial color=#0000ff size=2><SPAN class=429434500-23012004></SPAN></FONT> </DIV> <DIV><FONT><SPAN class=429434500-23012004> <P><FONT face=Arial color=#0000ff size=2>((log4net.Repository.Hierarchy.Hierarchy)log4net.LogManager.GetLoggerRepository()).Root.AddAppender(your appender<SPAN class=429434500-23012004> here</SPAN>);</FONT></P> <P><SPAN class=429434500-23012004><FONT face=Arial color=#0000ff size=2>If you still are having problems can you also post the version of log4net and the configuration file that you are using.</FONT></SPAN></P> <P><FONT face=Arial color=#0000ff size=2><SPAN class=429434500-23012004>Thanks,</SPAN></FONT></P> <P><FONT face=Arial color=#0000ff size=2><SPAN class=429434500-23012004>Nicko</SPAN></FONT></P></SPAN></FONT></DIV> <BLOCKQUOTE dir=ltr style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px"> <DIV></DIV> <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT face=Tahoma size=2>-----Original Message-----<BR><B>From:</B> Vincent Daron [mailto:[email protected]] <BR><B>Sent:</B> 22 January 2004 16:39<BR><B>To:</B> [email protected]<BR><B>Cc:</B> 'Denis, Rich'<BR><B>Subject:</B> RE: [Log4net-users] How to add an Appender to Log4net programmatically at runtime ?<BR><BR></FONT></DIV> <DIV class=Section1> <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">But when a new Logger is created, it receive some appenders, I just like to be include in this list ....<o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">I'll look into the code...<o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Thanks<o:p></o:p></SPAN></FONT></P> <DIV> <DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt"> <HR tabIndex=-1 align=center width="100%" SIZE=2> </SPAN></FONT></DIV> <P class=MsoNormal><B><FONT face=Tahoma size=2><SPAN style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">From:</SPAN></FONT></B><FONT face=Tahoma size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma"> Denis, Rich [mailto:[email protected]] <BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> jeudi 22 janvier 2004 17:34<BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> 'Vincent Daron'<BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> RE: [Log4net-users] How to add an Appender to Log4net programmatically at runtime ?</SPAN></FONT><o:p></o:p></P></DIV> <P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt"><o:p> </o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">You make perfect sense. Unfortunately I don't think that you can do what you are trying to do. You are only modifying the loggers that are known at the time you run your code. The only way I could think that you would get it to work is to somehow programmatically set the configuration file, but I am not sure how you would do this.<o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P> <DIV> <P class=MsoNormal><FONT face="Times New Roman" color=navy size=1><SPAN style="FONT-SIZE: 7.5pt; COLOR: navy"> </SPAN></FONT><FONT color=navy><SPAN style="COLOR: navy"> <o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Tahoma color=black size=2><SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Tahoma">Rich Denis</SPAN></FONT><FONT face=Tahoma color=navy size=1><SPAN style="FONT-SIZE: 8pt; COLOR: navy; FONT-FAMILY: Tahoma"><BR></SPAN></FONT><B><FONT face=Tahoma color=red size=1><SPAN lang=EN-GB style="FONT-WEIGHT: bold; FONT-SIZE: 9pt; COLOR: red; FONT-FAMILY: Tahoma">perot</SPAN></FONT></B><B><FONT face=Tahoma color=black size=1><SPAN lang=EN-GB style="FONT-WEIGHT: bold; FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Tahoma">systems</SPAN></FONT></B><B><FONT face=Tahoma color=black size=1><SPAN style="FONT-WEIGHT: bold; FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Tahoma">(tm)</SPAN></FONT></B><FONT color=navy><SPAN style="COLOR: navy"><o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial color=black size=1><SPAN style="FONT-SIZE: 7.5pt; COLOR: black; FONT-FAMILY: Arial">(972) 577-5869 Wk</SPAN></FONT><FONT color=navy><SPAN style="COLOR: navy"><o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face="Times New Roman" color=navy size=3><SPAN style="FONT-SIZE: 12pt; COLOR: navy"> </SPAN></FONT><o:p></o:p></P></DIV> <DIV> <DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt"> <HR tabIndex=-1 align=center width="100%" SIZE=2> </SPAN></FONT></DIV> <P class=MsoNormal><B><FONT face=Tahoma size=2><SPAN style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">From:</SPAN></FONT></B><FONT face=Tahoma size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma"> Vincent Daron [mailto:[email protected]] <BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> Thursday, <st1:date style="BACKGROUND-POSITION: left bottom; BACKGROUND-IMAGE: url(res://ietag.dll/#34/#1001); BACKGROUND-REPEAT: repeat-x" w:st="on" ls="trans" Month="1" Day="22" Year="2004">January 22, 2004</st1:date> <st1:time w:st="on" Hour="10" Minute="23">10:23 AM</st1:time><BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> <st1:PersonName style="BACKGROUND-POSITION: left bottom; BACKGROUND-IMAGE: url(res://ietag.dll/#34/#1001); BACKGROUND-REPEAT: repeat-x" w:st="on">Denis, Rich</st1:PersonName><BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> RE: [Log4net-users] How to add an Appender to Log4net programmatically at runtime ?</SPAN></FONT><o:p></o:p></P></DIV> <P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt"><o:p> </o:p></SPAN></FONT></P> <DIV> <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Thanks, but it did'nt solve my problem ...<o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">I'll try to be clearer,<o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">I've created an Appender, and I want to "Attach" it on all the Loggers at runtime. I want to Add it to the Appender specified in configuration file. I've found the following code since my first post :<o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face="Courier New" color=blue size=2><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'">foreach</SPAN></FONT><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">(ILoggerRepository tmp <FONT color=blue><SPAN style="COLOR: blue">in</SPAN></FONT> LoggerManager.GetAllRepositories())<o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">{<o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face="Courier New" color=blue size=2><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'"> foreach</SPAN></FONT><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">(Logger tmp2 <FONT color=blue><SPAN style="COLOR: blue">in</SPAN></FONT> tmp.GetCurrentLoggers())<o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"> {<o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"> tmp2.AddAppender(theAppender);<o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"> }<o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">}<o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><o:p> </o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">The problem with this approach is that all the assemblies loaded after this code do not log in My Appender (but they log in the appenders specified in configuration). If I load these assemblies before (by creating a dummy object for example), it run fine, and MyAppender receive every LoggingEvent... I can't do it for all the external assemblies of course ....<o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Thanks for answer<o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Sorry for my poor English ...<o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Vincent<o:p></o:p></SPAN></FONT></P> <DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt"> <HR tabIndex=-1 align=center width="100%" SIZE=2> </SPAN></FONT></DIV> <P class=MsoNormal><B><FONT face=Tahoma size=2><SPAN style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">From:</SPAN></FONT></B><FONT face=Tahoma size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma"> <st1:PersonName style="BACKGROUND-POSITION: left bottom; BACKGROUND-IMAGE: url(res://ietag.dll/#34/#1001); BACKGROUND-REPEAT: repeat-x" w:st="on">Denis, Rich</st1:PersonName> [mailto:[email protected]] <BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> jeudi 22 janvier 2004 17:01<BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> 'Vincent Daron'<BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> RE: [Log4net-users] How to add an Appender to Log4net programmatically at runtime ?</SPAN></FONT><o:p></o:p></P></DIV> <P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt"><o:p> </o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Try it without the MyAppender. i.e. <o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P> <DIV> <P class=MsoNormal><FONT face="Times New Roman" color=navy size=1><SPAN style="FONT-SIZE: 7.5pt; COLOR: navy"> </SPAN></FONT><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">log4net.Config.BasicConfigurator.Configure()<o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face="Times New Roman" color=navy size=3><SPAN style="FONT-SIZE: 12pt; COLOR: navy"><o:p> </o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Tahoma color=black size=2><SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Tahoma">Rich Denis</SPAN></FONT><FONT face=Tahoma color=navy size=1><SPAN style="FONT-SIZE: 8pt; COLOR: navy; FONT-FAMILY: Tahoma"><BR></SPAN></FONT><B><FONT face=Tahoma color=red size=1><SPAN lang=EN-GB style="FONT-WEIGHT: bold; FONT-SIZE: 9pt; COLOR: red; FONT-FAMILY: Tahoma">perot</SPAN></FONT></B><B><FONT face=Tahoma color=black size=1><SPAN lang=EN-GB style="FONT-WEIGHT: bold; FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Tahoma">systems</SPAN></FONT></B><B><FONT face=Tahoma color=black size=1><SPAN style="FONT-WEIGHT: bold; FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Tahoma">(tm)</SPAN></FONT></B><FONT color=navy><SPAN style="COLOR: navy"><o:p></o:p></SPAN></FONT></P></DIV> <DIV> <DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt"> <HR tabIndex=-1 align=center width="100%" SIZE=2> </SPAN></FONT></DIV> <P class=MsoNormal><B><FONT face=Tahoma size=2><SPAN style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">From:</SPAN></FONT></B><FONT face=Tahoma size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma"> Vincent Daron [mailto:[email protected]] <BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> Thursday, <st1:date style="BACKGROUND-POSITION: left bottom; BACKGROUND-IMAGE: url(res://ietag.dll/#34/#1001); BACKGROUND-REPEAT: repeat-x" w:st="on" ls="trans" Month="1" Day="22" Year="2004">January 22, 2004</st1:date> <st1:time w:st="on" Hour="9" Minute="31">9:31 AM</st1:time><BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> <st1:PersonName style="BACKGROUND-POSITION: left bottom; BACKGROUND-IMAGE: url(res://ietag.dll/#34/#1001); BACKGROUND-REPEAT: repeat-x" w:st="on">[email protected]</st1:PersonName><BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> [Log4net-users] How to add an Appender to Log4net programmatically at runtime ?</SPAN></FONT><o:p></o:p></P></DIV> <P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt"><o:p> </o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Hi<o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">By using </SPAN></FONT><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">log4net.Config.BasicConfigurator.Configure(MyAppender)</SPAN></FONT><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">it run pretty fine, but I lost all the log4net configuration stored in the config file...<o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Thanks for help<o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Vincent<o:p></o:p></SPAN></FONT></P></DIV></BLOCKQUOTE></BODY></HTML> ------_=_NextPart_001_01C3E14A.BD26BF62-- ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn