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. How to use the logging application block in Enterprise Library 3.0 , to log into a flat file

How to use the logging application block in Enterprise Library 3.0 , to log into a flat file

Scheduled Pinned Locked Moved C#
questiontutorial
2 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.
  • R Offline
    R Offline
    rameshbhojan
    wrote on last edited by
    #1

    Hi all, Can you please tell me the way to write a log entry into a text file??? once i use the LogEntry object and the Logger object, i need the use the FlatFile TraceListener to write into a .txt file. where and how do i specify the tect file name?? Thanks, Ramesh

    G 1 Reply Last reply
    0
    • R rameshbhojan

      Hi all, Can you please tell me the way to write a log entry into a text file??? once i use the LogEntry object and the Logger object, i need the use the FlatFile TraceListener to write into a .txt file. where and how do i specify the tect file name?? Thanks, Ramesh

      G Offline
      G Offline
      ganti r
      wrote on last edited by
      #2

      I am not sure you are using the application block ui. In the UI its pretty straight forward. Go to: Application Configuration-> Logging Application Block -> Trace Listeners In there add a new Flat File TraceListener. It give a file name option. The XML will look something like below:

      rAm i Think, i Wait, i Fast -- Siddartha

      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