The Wayback Machine - https://web.archive.org/web/20111102125719/http://www.codeguru.com/cpp/w-p/system/logging/

    Logging

    Managed C++: Monitoring the Windows Event Log

    Tom Archer illustrates the steps necessary to programmatically monitor your system's event log from a Managed C++ application. Monitoring certain event logs—especially the Security log—enables you to keep tabs on such security-related events as failed login attempts and port scans.

    Keystroke Logging (not yet reviewed)

    Learn to create a stealth keylogger on Windows 2000/NT/XP.

    HTML Logger, Portable and Thread-Safe

    Create colored, clear-to-read HTML logs from any C++ applications.