New naming scheme for global variables.

Updated windows example to use the new logging mechanism.