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

Dynamic log folder creation and with logname setting at run time

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.2.14
    • Fix Version/s: None
    • Component/s: Appenders
    • Labels:
      None

      Description

      Hi,

      Is there any way to create a log folder based on the date and log file name setting can be done at run time.
      For example -
      c:\Logs\20151216\deviceID_0.log

      c:\Logs can be static path.
      20151216 - can be date (for each day new folder should be created)
      and deviceID_0 unique name which has activity happening on the device.

      the above structure is very useful for doing good analysis.

      I don't think with the current rolling file appender we can configure this in app.config. Event if programmatically we want to do will it cost the performance..

      Please let me know how this can be achieved ?

      Thanks & Regards,
      Vidhya

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              vthawale Vidhya Thawale
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: