logging-log4net-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Khalid.Ash...@ubs.com>
Subject Adonet Appender Issue
Date Mon, 12 Nov 2012 13:40:48 GMT
> Hi,
> 
> I have developed a windows service in which I am using a timer control
> to perform some scheduled tasks. This timer elapses every 5 minutes
> and writes a log using log4net appender to database that the timer
> event had occurred. It looks like the appender uses only one
> connection to make all entries to the database and even stops logging
> if that connection is lost. There is a cold back of DB every week
> after which the connection is lost and from then onwards no logs are
> written to the database.
> 
> 1) Why does log4net uses only one connection? What if multiple threads
> are writing logs using same logger then it may cause performance
> issue, no?
> 2) Does it create a new connection if a connection is lost? (doesn't
> seem to be the default option though, but why?)
> 3) Why it doesn't use connection pool instead of one connection?
> 
> Thanks in advance for all the help.
> 
> Thanks,
> Khalid

Mime
View raw message