Changeset 636
- Timestamp:
- 03/14/07 23:36:47 (17 months ago)
- Files:
-
- 1 modified
-
branches/newnet/museekd/museekd/main.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/newnet/museekd/museekd/main.cpp
r634 r636 74 74 }; 75 75 76 class LogCallback : public NewNet::Event<const NewNet::Log::LogNotify *>::Callback77 {78 public:79 virtual void operator()(const NewNet::Log::LogNotify * notice)80 {81 std::cerr << "[" << notice->domain << "] " << notice->message << std::endl;82 }83 };84 85 76 int main(int argc, char ** argv) 86 77 { 87 78 /* Enable various interesting logging domains. */ 88 NNLOG.logEvent.connect(new LogCallback);79 NNLOG.logEvent.connect(new NewNet::ConsoleOutput); 89 80 NNLOG.enable("ALL"); 90 81
