Return-Path: Delivered-To: apmail-logging-log4net-user-archive@www.apache.org Received: (qmail 99144 invoked from network); 23 Jun 2009 07:08:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 23 Jun 2009 07:08:08 -0000 Received: (qmail 69178 invoked by uid 500); 23 Jun 2009 07:08:19 -0000 Delivered-To: apmail-logging-log4net-user-archive@logging.apache.org Received: (qmail 69107 invoked by uid 500); 23 Jun 2009 07:08:18 -0000 Mailing-List: contact log4net-user-help@logging.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: "Log4NET User" List-Id: Delivered-To: mailing list log4net-user@logging.apache.org Received: (qmail 69098 invoked by uid 99); 23 Jun 2009 07:08:18 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Jun 2009 07:08:18 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of karym6@hotmail.com designates 65.55.111.169 as permitted sender) Received: from [65.55.111.169] (HELO blu0-omc4-s30.blu0.hotmail.com) (65.55.111.169) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Jun 2009 07:08:07 +0000 Received: from BLU127-W25 ([65.55.111.135]) by blu0-omc4-s30.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 23 Jun 2009 00:07:45 -0700 Message-ID: Content-Type: multipart/alternative; boundary="_51448c97-0cc5-4732-9161-d4c42b9bfc61_" X-Originating-IP: [86.149.201.76] From: Karim Bourouba To: Subject: RE: Using log4net to write to remote windows event log Date: Tue, 23 Jun 2009 08:07:45 +0100 Importance: Normal In-Reply-To: <5E68591E674B394A9493D57B87806B9B539AC30027@exch2007.esp.local> References: <5E68591E674B394A9493D57B87806B9B539AC2FFE1@exch2007.esp.local> <5E68591E674B394A9493D57B87806B9B539AC30027@exch2007.esp.local> MIME-Version: 1.0 X-OriginalArrivalTime: 23 Jun 2009 07:07:45.0948 (UTC) FILETIME=[4F36DDC0:01C9F3D1] X-Virus-Checked: Checked by ClamAV on apache.org --_51448c97-0cc5-4732-9161-d4c42b9bfc61_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Sorry=2C I think you may have missed my point. The event log in Windows is = specific to the installation only. To me=2C recording things that have take= n place on an a different machine in a remote systems event log doesnt look= like good design. =20 Given that you have a lot of different systems you want to log with differe= nt logging criteria=2C wouldnt logging to a data base be a more prudent mov= e? =20 The ability to view remote logs isnt new with Windows 2008=2C its been arou= nd for a while now. Bear in mind that this isnt the event log=2C its called= the event collector and is a seperate service. You need to decide which wi= ll be better for you - if you want to rely on this (i.e. you have a tool th= at needs the Event Log) then you are going to have to look into this=2C how= ever if you want a flexible logging system=2C then you may want to spend mo= re time with log4net. =20 From: florin.daneliuc@iquestint.com To: log4net-user@logging.apache.org Date: Tue=2C 23 Jun 2009 09:57:31 +0300 Subject: RE: Using log4net to write to remote windows event log Thanks Karim. =20 In my case I have a number of systems distributed on different computers in= a test environment and I would like certain errors (that would cause my ap= plication to stop) to also go into a central event log in order to be able = to only inspect one event log. Emailing in my case is not something that I = would use. =20 The fact that Event Log is a windows technology it not an issue=2C this app= lication is windows only=2C log4net supports Event Log=2C even if not at it= 's full capabilities. In order to make the Event Log appender be able to wr= ite to a remote Event Log you only need about 5 lines of code changed. But = of course=2C I'm not sure about the performance penalty and I don't know wh= y this capability was "postponed" in the appender (this might clarify this)= . =20 Also there is a appender that is able to write to remote sinks=2C RemoteSys= logAppender=2C which is mostly Linux only=2C so using a remote sink is not = something new. Windows 2008 seems to have the ability to collect logs from = other computers=2C so somehow they have thought about something like this. =20 florin =20 From: Karim Bourouba [mailto:karym6@hotmail.com]=20 Sent: Tuesday=2C June 23=2C 2009 12:25 AM To: log4net-user@logging.apache.org Subject: RE: Using log4net to write to remote windows event log This isnt something I have ever needed to use log4net for=2C but there are = two possibilities for you: RemotingAppender and UDPAppender. Both of these = appenders appear to be able to deliver messages to remote apps=2C at least = this is what the log4net page on config examples suggest: http://logging.ap= ache.org/log4net/release/config-examples.html =20 There is also a SMTPAppender that could also help you out. =20 However=2C I dont think there is anything ready made for you that will ente= r these events onto another systems event log. If this is a Windows environ= ment=2C then it isnt a great idea anyway. If you think about it a bit=2C th= e event log is used for the system upon which the OS and other applications= are running. To me=2C it makes very little sense to log events from other = systems here. =20 Have you considered simply using the ADONetAppender to log events to a data= base somewhere? This=2C to me at least=2C would be a better way of logging = events - but then again I dont really know what it is you are trying to do. =20 > From: florin.daneliuc@iquestint.com > To: log4net-user@logging.apache.org > Date: Mon=2C 22 Jun 2009 18:38:35 +0300 > Subject: Using log4net to write to remote windows event log >=20 >=20 > Hello=2C >=20 > I'm using log4net to log/trace an application and I would like to have ce= rt=3D ain errors ending up in the the event log from another computer. Is t= here a way to do this? (RemoteSyslogAppender?) >=20 > It seems that I could do around the tree and use a ForwardingAppender whi= ch together with a application acting as server on the remote computer woul= d could write this to the event log=2C but it looks a little to cumbersome. >=20 > PS I was able to change log4net to write to a remote eventlog=2C but I wo= uld prefer to use an "untainted" library. >=20 > Thanks=2C > florin View your Twitter and Flickr updates from one place =96 Learn more! _________________________________________________________________ MSN straight to your mobile - news=2C entertainment=2C videos and more. http://clk.atdmt.com/UKM/go/147991039/direct/01/= --_51448c97-0cc5-4732-9161-d4c42b9bfc61_ Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Sorry=2C I think you may have missed my point. The event log in =3BWind= ows is specific to the installation only. To me=2C recording things that ha= ve taken place on an =3Ba different machine in a remote systems event l= og doesnt look like good design.
 =3B
Given that you have a lot of different systems you want to log with differe= nt logging criteria=2C wouldnt logging to a =3Bdata base be a more prud= ent move?
 =3B
The =3Bability to view remote logs isnt new with Windows 2008=2C its be= en around for a while now. Bear in mind that this isnt the event log=2C its= called the event collector and is a seperate service. You need to decide w= hich will be better for you - if you want to rely on this =3B(i.e. you = have a tool that needs the Event Log) then you are going to =3Bhave to = look into this=2C however if you want a flexible logging system=2C then you= may want to spend more time with log4net.


 =3B


From: florin.daneliuc@iquestint.com
To: log4net-user@logging.apache.org<= BR>Date: Tue=2C 23 Jun 2009 09:57:31 +0300
Subject: RE: Using log4net to= write to remote windows event log

Thanks Karim.
 =3B
In my case I have a number of systems distributed o= n different computers in =3Ba test environment =3Band I would like = certain errors (that would cause my application to stop) to also go into a = central event log in order to be able to only inspect one event log. Emaili= ng in my case is not something that I would use.
 =3B
The fact that Event Log is a windows technology it = not an issue=2C this application is windows only=2C log4net supports Event = Log=2C even if not at it's full capabilities. In order to make the Event Lo= g appender be able to write to a remote Event Log you only need about 5 lin= es of code changed. But of course=2C I'm not sure about the performance pen= alty and I don't know why this capability was "postponed" in the appender (= this might clarify this).
 =3B
Also there is a appender that is able to write to r= emote sinks=2C RemoteSyslogAppender=2C which is mostl= y Linux only=2C so using a remote sink is not something new. = Windows 2008 = seems to have the ability to collect logs from other computers=2C so someho= w they have thought about something like this.
 =3B
florin
 =3B


From: Karim Bourouba [mailto:karym6@hotmail.com]=
Sent: Tuesday=2C June 23=2C 2009 12:25 AM
To: log4net= -user@logging.apache.org
Subject: RE: Using log4net to write to r= emote windows event log

This isnt something I have ever needed to use log4net for=2C but= there are two possibilities for you: RemotingAppender and UDPAppender. Bot= h of these appenders appear to be able to deliver messages to remote apps= =2C at least this is what the log4net page on config examples suggest: http= ://logging.apache.org/log4net/release/config-examples.html
 =3B<= BR>There is also a SMTPAppender that could also help you out.
 =3BHowever=2C I dont think there is anything ready made for you that will en= ter these events onto another systems event log. If this is a Windows envir= onment=2C then it isnt a great idea anyway. If you think about it a bit=2C = the event log is used for the system upon which the OS and other applicatio= ns are running. To me=2C it makes very little sense to log events from othe= r systems here.
 =3B
Have you considered simply using the ADONetA= ppender to log events to a database somewhere? This=2C to me at least=2C wo= uld be a better way of logging events - but then again I dont really know w= hat it is you are trying to do.


 =3B

>=3B From: flo= rin.daneliuc@iquestint.com
>=3B To: log4net-user@logging.apache.org>=3B Date: Mon=2C 22 Jun 2009 18:38:35 +0300
>=3B Subject: Using lo= g4net to write to remote windows event log
>=3B
>=3B
>=3B = Hello=2C
>=3B
>=3B I'm using log4net to log/trace an application= and I would like to have cert=3D ain errors ending up in the the event log= from another computer. Is there a way to do this? (RemoteSyslogAppender?)<= BR>>=3B
>=3B It seems that I could do around the tree and use a For= wardingAppender which together with a application acting as server on the r= emote computer would could write this to the event log=2C but it looks a li= ttle to cumbersome.
>=3B
>=3B PS I was able to change log4net to= write to a remote eventlog=2C but I would prefer to use an "untainted" lib= rary.
>=3B
>=3B Thanks=2C
>=3B florin


View your Twitter and Flickr updates from one place =96 Learn more!

View y= our Twitter and Flickr updates from one place =96 Learn more! = --_51448c97-0cc5-4732-9161-d4c42b9bfc61_--