Uploaded image for project: 'Log4net'
  1. Log4net
  2. LOG4NET-577

Log4net gives error on UpdateLogFilePath when logfilepath changes dynamically for an appender.

    Details

    • Type: Bug
    • Status: Reopened
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.2.11
    • Fix Version/s: None
    • Component/s: Appenders
    • Labels:
      None
    • Environment:
      Windows

      Description

      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)

        Attachments

          Activity

            People

            • Assignee:
              nachbarslumpi Dominik Psenner
              Reporter:
              deornilesh Nilesh R Deo
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: