CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Log solution

  1. #1
    Join Date
    Jul 2003
    Posts
    3

    Question Log solution

    I am programming a server and I am looking for some ideas on logs. I will be logging server activity by logging packet information, but I dont know the best method for this. I guess I could set up a database for this, or open a text file and save periodically, but those options both seem to have a lot of overhead. I know game companies are able to log bascially everything, but I dont know exactly how they handle the overhead.

    Anyone have any ideas?

  2. #2
    Join Date
    May 2000
    Location
    KY, USA
    Posts
    18,652
    [Moved thread]

  3. #3
    Join Date
    Aug 2003
    Posts
    1
    I am developing servers for mobile services and logs are very important thing here. Currently I am using row text file where every row has four fields: date, thread name, class name, log info (or warning or error).
    We were thinking about change to log into db table but I makes problem when you have to write some data bigger then 255 chars (for example content of some HTTP POST, or exception stack trace) so we are stil using text file log. Also logging is done on the way that each day is log done in seperate file so it is easy to view log and manage log files (copy, delete, zip).

    I am not using JLog then my Log class. If you want to see how it works, just mail me.

    Karlo

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured