Changeset 2208

Show
Ignore:
Timestamp:
03/08/2008 07:56:16 (5 months ago)
Author:
chris
Message:

Remove Windows limitation on Logging that showing PID was not possible.

Location:
box/trunk/lib/common
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • box/trunk/lib/common/Logging.cpp

    r2204 r2208  
    228228bool Console::sShowTimeMicros = false; 
    229229bool Console::sShowTag = false; 
    230 #ifndef WIN32 
    231230bool Console::sShowPID = false; 
    232 #endif 
    233231std::string Console::sTag; 
    234232 
     
    249247} 
    250248 
    251 #ifndef WIN32 
    252249void Console::SetShowPID(bool enabled) 
    253250{ 
    254251        sShowPID = enabled; 
    255252} 
    256 #endif 
    257253 
    258254bool Console::Log(Log::Level level, const std::string& rFile,  
     
    281277        if (sShowTag) 
    282278        { 
    283                 #ifndef WIN32 
    284279                if (sShowPID) 
    285280                { 
     
    287282                } 
    288283                else 
    289                 #endif 
    290284                { 
    291285                        buf << "[" << sTag << "] "; 
    292286                } 
    293287        } 
    294         #ifndef WIN32 
    295288        else if (sShowPID) 
    296289        { 
    297290                buf << "[" << getpid() << "] "; 
    298291        } 
    299         #endif 
    300292 
    301293        if (level <= Log::FATAL) 
  • box/trunk/lib/common/Logging.h

    r2199 r2208  
    148148        static bool sShowTag; 
    149149        static std::string sTag; 
    150         #ifndef WIN32 
    151150        static bool sShowPID; 
    152         #endif 
    153151 
    154152        public: 
     
    161159        static void SetShowTime(bool enabled); 
    162160        static void SetShowTimeMicros(bool enabled); 
    163         #ifndef WIN32 
    164161        static void SetShowPID(bool enabled); 
    165         #endif 
    166162}; 
    167163