This section of the archives stores flipcode's complete Developer Toolbox collection, featuring a variety of mini-articles and source code contributions from our readers.

 

  zxLog - C++ Logging Class
  Submitted by



zxLog is a c++ class for logging data/messages in a program to a file or to another application. I wrote this class some years ago, since then i used it in many projects and i hope it will be usefull for some other people too. I defined many shift-operators for covering the most popular data-types to be logged. Feel free to implement new operators to meet your needs. For logging data to a file zxLog internally uses ofstream. The windows message WM_COPYDATA is used to send data to another application which looks for this message and knows how to handle it. In the zxLog.zip there is a sample application which shows how to "catch" zxLog-messages. Its a simple mfc-dialog-application.

For more information on zxLog, read zxlog.txt included in the zip file.


The zip file viewer built into the Developer Toolbox made use of the zlib library, as well as the zlibdll source additions.

 

Copyright 1999-2008 (C) FLIPCODE.COM and/or the original content author(s). All rights reserved.
Please read our Terms, Conditions, and Privacy information.