none
C# logger what is smartest to do??? RRS feed

  • Question

  • I need to make Process logger and IP connection logger...

    I know the code but the problem is how to make it most optimal...

    The most optimal way to do this is to log the new processes and connection every time new process and connection appears. But i dont know if that kind event exists in C#.

    Of course you can check actively every second if there is new processes or connections on the PC but that would take lot of time on the CPU wich will cause bad performance on the other applications you run on the PC...

    Ispecially if you run netstat - anob on XP PC...

    I also thought about IDLE timer wich will only do logging when you use mouse and keyboard events but that does not improve performance while you work on the PC...because it will logg anyway every time mouse or keyboard event is triggered...

    so is there any smart way to do this or should i just set the logger to log every second???

    THANKS!!! :D

    • Moved by Rudedog2 Thursday, September 23, 2010 3:31 PM : ASP.NET is off-topic (From:Visual C# General)
    Monday, September 20, 2010 6:45 PM

All replies