Changeset 539 for trunk/src/Halite.cpp


Ignore:
Timestamp:
08/14/08 15:40:50 (11 years ago)
Author:
Eoin
Message:

Fixed problem with log singleton (there were 2 of 'em!)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/Halite.cpp

    r536 r539  
    5151        void connect()  
    5252        {  
     53                hal::event_log.init(); 
    5354                conn_ = hal::event_log.attach(bind(&halite_log_file::operator(), this, _1));  
    5455                assert(conn_.connected()); 
     
    8990{ 
    9091 
    91         HAL_DEV_MSG(L"Hello"); 
    9292//      hal::event_log.post(shared_ptr<hal::EventDetail>(new hal::EventDebug(hal::event_logger::info, L"Hello"))); 
    9393 
     
    143143                hal::event_log.post(shared_ptr<hal::EventDetail>( 
    144144                        new hal::EventMsg(hal::wform(L"Exe Path: %1%.") % hal::app().exe_path())));              
     145 
     146                HAL_DEV_MSG(L"Hello"); 
    145147                 
    146148                hal::event_log.post(shared_ptr<hal::EventDetail>( 
    147149                        new hal::EventMsg(hal::wform(L"Initial Path: %1%.") % hal::app().initial_path())));              
     150 
     151                hal::event_log.post(shared_ptr<hal::EventDetail>( 
     152                        new hal::EventMsg(L"Hi again", hal::event_logger::dev)));                
    148153                 
    149154                hal::event_log.post(shared_ptr<hal::EventDetail>( 
Note: See TracChangeset for help on using the changeset viewer.