Menu

#58 Log4NEt throws ThreadInteruptedException

open
nobody
None
5
2003-12-10
2003-12-10
Anonymous
No

Hi, my email address is borisn@hubhop.com I am using
your logger in my projects and am encoutering the
following "bug".
I have programmed a sort of scheduler, that runs tasks
a specified time. Until that time the schedule thread is in
a sleeping state, until the task has to run. If I now
schedule a task that has to be run first I have to wake
up my waiting thread. If I do this log4net throws an
exception when I do logging actions in the thread that is
interupted, see the below stacktrace. Could this have
something to do with the acquisition of the lock in
CallAppenders. Should I guard all my log actions with
ThreadInterruptedException, this solves my problems
only sometimes I will not be abel to log.

Exception: System.Threading.ThreadInterruptedException
Message: Thread has been interrupted from a waiting
state.
Source: log4net
at log4net.Repository.Hierarchy.Logger.CallAppenders
(LoggingEvent loggingEvent)
at log4net.Repository.Hierarchy.Logger.ForcedLog
(String callerFullName, Level level, Object message,
Exception t)
at log4net.Repository.Hierarchy.Logger.Log(String
callerFullName, Level level, Object message, Exception t)
at log4net.spi.LogImpl.Debug(Object message)
at
HubHop.Portal.Logon.Radius.VOPCOMRadiusImpl..ctor
(String configName, String userName, String nasId) in
c:projectsportalsrcHubHopPortalLogonRadiusVOPC
OMRadiusImpl.cs:line 105
at
HubHop.Portal.Logon.Radius.RadiusFactory.GetInstance
(String configName, String userName, String nasId) in
c:projectsportalsrcHubHopPortalLogonRadiusRadius
Factory.cs:line 18
at
HubHop.Portal.Logon.KPNMobile.SessionAcctTask.Run()
in
c:projectsportalsrcHubHopPortalLogonKPNMobileKP
NMobileSessionManager.cs:line 108

Discussion


Log in to post a comment.