[ 
https://issues.apache.org/jira/browse/LOG4NET-577?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nilesh R Deo reopened LOG4NET-577:
----------------------------------

Hi Dominik,

Can you please elaborate on the edge cases that we need to take care of when we 
change the log filepath at runtime.
We need the log filepath to change for each country at runtime.

Regards,
Nilesh Deo

> Log4net gives error on UpdateLogFilePath when logfilepath changes dynamically 
> for an appender.
> ----------------------------------------------------------------------------------------------
>
>                 Key: LOG4NET-577
>                 URL: https://issues.apache.org/jira/browse/LOG4NET-577
>             Project: Log4net
>          Issue Type: Bug
>          Components: Appenders
>    Affects Versions: 1.2.11
>         Environment: Windows 
>            Reporter: Nilesh R Deo
>            Assignee: Dominik Psenner
>
> We get the following errors randomly in our Windows service. And the service 
> hangs sometimes. Can you please suggest a resolution. The logfilepath is set 
> dynamically from database table for the appender. 
> Error validating Tagged message. StackTrace:   at 
> log4net.Appender.FileAppender.ActivateOptions()
>    at log4net.Appender.RollingFileAppender.ActivateOptions()
>    at 
> TtsEmea.ImagingWorkflow.Log4NetWrapper.Log4NetLogger.UpdateLogFilePath(String 
> appender, String logFilePath)
>    at 
> TtsEmea.ImagingWorkflow.Common.LogWrapper.LogFactory.GetLoggerBasedOnType(LoggerType
>  type, String appender, String logFilePath)
>    at 
> TtsEmea.ImagingWorkflow.Common.LogWrapper.LogManager.GetLoggerFactory(String 
> configurationFilePath, String appender, String logFilePath)
>    at IntellectFlow.Classes.cMessageLog.WriteInfoMessage(String strMessage)
>    at IntellectFlow.Classes.cFileRecordSet.GetIndexValueForTagged()
>    at IntellectFlow.Classes.cFileRecordSet.ValidateTagged()
> Error creating TIF file.   at log4net.Appender.FileAppender.ActivateOptions()
>    at log4net.Appender.RollingFileAppender.ActivateOptions()
>    at 
> TtsEmea.ImagingWorkflow.Log4NetWrapper.Log4NetLogger.UpdateLogFilePath(String 
> appender, String logFilePath)
>    at 
> TtsEmea.ImagingWorkflow.Common.LogWrapper.LogFactory.GetLoggerBasedOnType(LoggerType
>  type, String appender, String logFilePath)
>    at 
> TtsEmea.ImagingWorkflow.Common.LogWrapper.LogManager.GetLoggerFactory(String 
> configurationFilePath, String appender, String logFilePath)
>    at IntellectFlow.Classes.cMessageLog.WriteInfoMessage(String strMessage)
>    at IntellectFlow.Classes.cFileRecordSet.WriteTextToTIFF(String sContent, 
> String sFile) 



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to