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 / C++ / MFC
  4. Regarding creation of Log File

Regarding creation of Log File

Scheduled Pinned Locked Moved C / C++ / MFC
sysadminarchitecture
4 Posts 4 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.
  • H Offline
    H Offline
    H4u32
    wrote on last edited by
    #1

    I want to create detailed log of errors that could be raised in any part of whole application while execution. My application is based on client/ server architecture which uses TCP connection.I want to create and maintain log file containing all errors generated with their respective function, class or any part of an application including timestamp. so that i can analyze them to correct them. Regards, Hemang

    C M 2 Replies Last reply
    0
    • H H4u32

      I want to create detailed log of errors that could be raised in any part of whole application while execution. My application is based on client/ server architecture which uses TCP connection.I want to create and maintain log file containing all errors generated with their respective function, class or any part of an application including timestamp. so that i can analyze them to correct them. Regards, Hemang

      C Offline
      C Offline
      CPallini
      wrote on last edited by
      #2

      What is your trouble doing it?

      If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
      [my articles]

      1 Reply Last reply
      0
      • H H4u32

        I want to create detailed log of errors that could be raised in any part of whole application while execution. My application is based on client/ server architecture which uses TCP connection.I want to create and maintain log file containing all errors generated with their respective function, class or any part of an application including timestamp. so that i can analyze them to correct them. Regards, Hemang

        M Offline
        M Offline
        Maxwell Chen
        wrote on last edited by
        #3

        So you can just use std::ofstream to write log in a text file.


        Maxwell Chen

        N 1 Reply Last reply
        0
        • M Maxwell Chen

          So you can just use std::ofstream to write log in a text file.


          Maxwell Chen

          N Offline
          N Offline
          namratakalburgi
          wrote on last edited by
          #4

          could anybody please tell me how to create a log file containing date, time, file name and operation being done on or by the file

          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