Re: asynchronous logging?

"Duncan Godwin" <[email protected]> Sat, 2 Oct 2004 01:22:14 +0100
Newsgroups gmane.comp.windows.dotnet.log4net.devel
Message-ID <006401c4a815$e020ebd0$a10214ac@SHEKINAH>
I'd also like to see some buffered async logging.=20

MSMQ isn't really an asynchronus logging destination (despite MS stating =
for their Logging block it supports Async logging)=20
as I see it as identical in this context to logging to a database (or =
SMTP for that matter).  MSMQ (like SMTP) through it's=20
normal usage patterns make it an asynchronus form of processing.  Just =
sending log statements to it sychronously (as with the MS
logging block) doesn't suddenly imbue the the appender with asynchronus =
behavior - it still takes time to perform.

The problem I have with buffered logging is you take a performance hit =
everytime you hit the buffer threshold - I would imagine
this could be mitigated through a richer asynchronus logging process =
which would use some form of lazy writer working on a=20
separate thread.  I had a look at implementing something like this =
myself but couldn't see a clean way of fitting it into an appender=20
without changing the way appenders work.

Duncan
----- Original Message -----=20
From: "Mario Gutierrez" <[email protected]>
To: "'Log4NET User'" <[email protected]>
Sent: Friday, October 01, 2004 10:22 PM
Subject: RE: asynchronous logging?


> SMTP is essentially a queued application. Are you planning on doing
> something more once it's been enqueued?
>=20
> -----Original Message-----
> From: Simon Wallis [mailto:[email protected]]=20
> Sent: Friday, October 01, 2004 2:15 PM
> To: [email protected]
> Subject: asynchronous logging?
>=20
>=20
> Hi, has anyone tried and found a benefit to doing asynchronous logging
> to something such as MSMQ? I currently plan to log to SQL Server but
> wondered if somehow doing it asynchronously would yield better
> performance. It doesn't seem like log4net has an MSMQ appender so that
> will be another challenge.
>=20
> Comments anyone?
>=20
> Simon.
>=20
>=20
>



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl