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
  1. Home
  2. General Programming
  3. C#
  4. log4net FileAppender -> Logging to File

log4net FileAppender -> Logging to File

Scheduled Pinned Locked Moved C#
helpcsharpcomdebuggingtutorial
3 Posts 2 Posters 0 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.
  • S Offline
    S Offline
    stephan_007
    wrote on last edited by
    #1

    Hy everyone! I found the log4net tool which looks very interesting and powerful to me. I also found an article describing how to send log-messages to screen (An Introduction to the log4net logging library, using C#[^]. But the tons of codelines confuse me more than it helps :sigh: I mean those of the log4net tool So what I want to do is to write these log-messages described in there to a logfile instead of writing it to screen. I guess this will be very simple for most of you but at the moment I am stuck. Could someone help me please how to change the code in this article so it writes the messages to a logfile? Thanks! Stephan.

    B 1 Reply Last reply
    0
    • S stephan_007

      Hy everyone! I found the log4net tool which looks very interesting and powerful to me. I also found an article describing how to send log-messages to screen (An Introduction to the log4net logging library, using C#[^]. But the tons of codelines confuse me more than it helps :sigh: I mean those of the log4net tool So what I want to do is to write these log-messages described in there to a logfile instead of writing it to screen. I guess this will be very simple for most of you but at the moment I am stuck. Could someone help me please how to change the code in this article so it writes the messages to a logfile? Thanks! Stephan.

      B Offline
      B Offline
      buchstaben
      wrote on last edited by
      #2

      logging to a file is already described in the article you link to. have a quick search for "FileAppender"..

      S 1 Reply Last reply
      0
      • B buchstaben

        logging to a file is already described in the article you link to. have a quick search for "FileAppender"..

        S Offline
        S Offline
        stephan_007
        wrote on last edited by
        #3

        ups sorry, yes you are right. looks like i didn't see it when quickly reading the article. thanks for the hint!

        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