Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. Regarding Log4Net tool to clean the data older than 60 days

Regarding Log4Net tool to clean the data older than 60 days

Scheduled Pinned Locked Moved C#
tutorial
6 Posts 4 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    rajesh4u
    wrote on last edited by
    #1

    Hi All, I created a web application which creates(for the first time) and writes to a log file using Log4Net tool. Now my requirement is to clean the data for 60 days old log data. Can any tell me how to do this. Thanks in advance, urs friend :)

    L N 2 Replies Last reply
    0
    • R rajesh4u

      Hi All, I created a web application which creates(for the first time) and writes to a log file using Log4Net tool. Now my requirement is to clean the data for 60 days old log data. Can any tell me how to do this. Thanks in advance, urs friend :)

      L Offline
      L Offline
      leppie
      wrote on last edited by
      #2

      Did you look if Log4Net havent got this option already?

      xacc.ide - now with TabsToSpaces support
      IronScheme - 1.0 alpha 4a out now (29 May 2008)

      R 1 Reply Last reply
      0
      • L leppie

        Did you look if Log4Net havent got this option already?

        xacc.ide - now with TabsToSpaces support
        IronScheme - 1.0 alpha 4a out now (29 May 2008)

        R Offline
        R Offline
        rajesh4u
        wrote on last edited by
        #3

        Thanks for the response but i did not find the option in log4net ( i am new to log4net)

        P 1 Reply Last reply
        0
        • R rajesh4u

          Thanks for the response but i did not find the option in log4net ( i am new to log4net)

          P Offline
          P Offline
          Paddy Boyd
          wrote on last edited by
          #4

          If you set your log file to be a rolling file appender, then you could just archive off any data in a log file that is older than 60 days.

          R 1 Reply Last reply
          0
          • R rajesh4u

            Hi All, I created a web application which creates(for the first time) and writes to a log file using Log4Net tool. Now my requirement is to clean the data for 60 days old log data. Can any tell me how to do this. Thanks in advance, urs friend :)

            N Offline
            N Offline
            nelsonpaixao
            wrote on last edited by
            #5

            Hi, I don´t know log4net, it´s easy to do it (logs) with sql Store procedures i can help there if you want.:cool:

            1 Reply Last reply
            0
            • P Paddy Boyd

              If you set your log file to be a rolling file appender, then you could just archive off any data in a log file that is older than 60 days.

              R Offline
              R Offline
              rajesh4u
              wrote on last edited by
              #6

              Can you explain how to set(or what are the settings need to be set) the log file to be a rolling appender, to archive the data in a log file which is older than 60 days Thanks,

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups