CIS Home http://cisweb.bristol.mass.edu/~ik/

Unilog, the Universal Logging Facility


  1. Comment: a good programming paractice...
  2. Assert: a proactive programming paractice...
  3. Trace: debug without the debugger
  4. Unilog: a set of command-line tools
  5. Try it!
  6. Unilog Step-by-step
  7. Unilog Server Window
  8. Client Source Instrumentation.
  9. Sample Client Source Sample
  10. Test the Client Application
  11. How to remove Unilog traces from your source files
  12. More Info

1. Comment: a good programming paractice...


2. Assert: a proactive programming paractice...


3. Trace: debug without the debugger


4. Unilog: a set of command-line tools


  1. Tracer tool inserts trace statements in every function of the Client application.

  2. Instrumented Client source code is compiled.

  3. Unilog Server is started before the Client.

  4. The Server captures trace messages generated by the Client and creates a binary log file.

  5. The Reader utility reads the information from the log file and generates a report (see sample report ).

     

5. Try it!


  1. Download file Unilog.zip and unzip the archive on your hard drive.

  2. Partial Unilog directory structure includes a variety of tools:

     

6. Unilog Step-by-step



7. Unilog Server Window


8. Client Source Instrumentation.


9. Sample Client Source Sample


10. Test the Client Application


11. How to remove Unilog traces from your source files


    Find and Replace
  1. If using Visual Studio, click Edit Menu, Find and Replace, Replace in Files.

    Alternatively, press CTRL+SHIFT+H key combination while in the Code Editor window.

  2. Type

        UNILOG_AUTO_TRACE\(*:b:z*:b\);\n
    

    in the Find what box

  3. Clear Replace with box

  4. Specify project path in the Look in folder

  5. Check Use Regular expressions option

  6. Click Replace All.


12. More Info