//======================================================================= // // Copyright (c) 1998-2000 Microsoft Corporation. All Rights Reserved. // // File: IULogger.cpp: implementation of the CIULogger class. // // Description: // // See IULogger.h // //======================================================================= #if defined(DBG) #include #include #include #include #include #include #include // // declare constants used to control log exclusions // const DWORD LOG_BLOCK = 0x00000001; // log function/block in/out const DWORD LOG_XML_DETAIL = 0x00000002; // log detailed XML operation const DWORD LOG_INTERNET = 0x00000004; // log action related to Internet activities, e.g., downld const DWORD LOG_SOFTWARE = 0x00000008; // log details about software detection/installation const DWORD LOG_DRIVER = 0x00000010; // log actions related to driver detection/installation const DWORD LOG_TRUST = 0x00000020; // log actions related to wintrust checking const DWORD LOG_DOWNLOAD = 0x00000040; // log actions related to download const DWORD LOG_XML_BSTR_DETAIL = 0x00000080; // log XML BSTRs const DWORD LOG_ERROR = 0x00008000; // you can not exclude this type of logs from output const DWORD LOG_ALL = 0xFFFFFFFF; // default, all above // // const for longest line of XML we will output // const DWORD LOG_XML_BUFF_LEN = 128; // // const for specifying the intent array size increament. // each element in array holds indent data for one thread // const int c_IndentArrayChunk = 16; // // define the log header format // // It is constructed as: