Changeset 5910 for branches/newapi
- Timestamp:
- 12/02/07 20:12:41 (12 months ago)
- Location:
- branches/newapi/licq/src
- Files:
-
- 6 modified
-
daemon.cpp (modified) (2 diffs)
-
daemon.h (modified) (2 diffs)
-
main.cpp (modified) (1 diff)
-
plugin/plugincacheimpl.cpp (modified) (2 diffs)
-
static.cpp (modified) (2 diffs)
-
util/log.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/newapi/licq/src/daemon.cpp
r5909 r5910 22 22 #include "licq/exception/runtimeexception.h" 23 23 #include "licq/exception/unixexception.h" 24 #include "licq/interface/log.h" 24 25 #include "licq/version.h" 25 26 #include "plugin/plugincache.h" … … 88 89 89 90 LicqDaemon::Daemon::Daemon() 90 : myLog(*L og::getThreadLog())91 : myLog(*Licq::Log::getThreadLog()) 91 92 { 92 93 // Empty -
branches/newapi/licq/src/daemon.h
r5909 r5910 22 22 23 23 #include "licq/interface/daemon.h" 24 #include "util/log.h"25 24 26 25 #include <iosfwd> … … 52 51 53 52 private: 54 Licq::Log& myLog;53 class Licq::Log& myLog; 55 54 56 55 std::string myBaseDir; -
branches/newapi/licq/src/main.cpp
r5897 r5910 57 57 LicqDaemon::LogDistributor logDistributor; 58 58 LicqDaemon::Log::setThreadLog(new LicqDaemon::Log("licq", &logDistributor)); 59 Licq::Log& log = *Licq Daemon::Log::getThreadLog();59 Licq::Log& log = *Licq::Log::getThreadLog(); 60 60 61 61 // Enable logging to stderr -
branches/newapi/licq/src/plugin/plugincacheimpl.cpp
r5909 r5910 22 22 #include "licq/exception/systemexception.h" 23 23 #include "licq/exception/unixexception.h" 24 #include "licq/interface/log.h" 24 25 #include "plugin/plugincacheimpl.h" 25 26 #include "plugin/pluginlibrary.h" 26 27 #include "plugin/pluginloader.h" 27 #include "util/log.h"28 28 #include "util/support.h" 29 29 #include "util/tr.h" … … 105 105 LicqDaemon::PluginCacheImpl::PluginCacheImpl(PluginLoader& loader, 106 106 bool testMode) 107 : myLog(*L og::getThreadLog()),107 : myLog(*Licq::Log::getThreadLog()), 108 108 myLoader(loader), 109 109 myInTestMode(testMode) -
branches/newapi/licq/src/static.cpp
r5908 r5910 39 39 static Licq::ThreadSpecific<LicqDaemon::Log> ThreadLogs; 40 40 41 void LicqDaemon::Log::setThreadLog(const L icq::Log* log)41 void LicqDaemon::Log::setThreadLog(const Log* log) 42 42 { 43 43 if (ThreadLogs.hasData()) … … 47 47 ::abort(); 48 48 } 49 50 const Log* l = dynamic_cast<const Log*>(log); 51 assert(l != NULL); 52 ThreadLogs.setData(l); 49 ThreadLogs.setData(log); 53 50 } 54 51 -
branches/newapi/licq/src/util/log.h
r5908 r5910 51 51 * @see getThreadLog() 52 52 */ 53 static void setThreadLog(const L icq::Log* log);53 static void setThreadLog(const Log* log); 54 54 55 55 // From Licq::Log
