Changeset 636

Show
Ignore:
Timestamp:
03/14/07 23:36:47 (17 months ago)
Author:
hyriand
Message:

Use NewNet's internal stderr logger

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/newnet/museekd/museekd/main.cpp

    r634 r636  
    7474}; 
    7575 
    76 class LogCallback : public NewNet::Event<const NewNet::Log::LogNotify *>::Callback 
    77 { 
    78 public: 
    79   virtual void operator()(const NewNet::Log::LogNotify * notice) 
    80   { 
    81     std::cerr << "[" << notice->domain << "] " << notice->message << std::endl; 
    82   } 
    83 }; 
    84  
    8576int main(int argc, char ** argv) 
    8677{ 
    8778  /* Enable various interesting logging domains. */ 
    88   NNLOG.logEvent.connect(new LogCallback); 
     79  NNLOG.logEvent.connect(new NewNet::ConsoleOutput); 
    8980  NNLOG.enable("ALL"); 
    9081