Fix and improve logging support
authorManuel Nickschas <sputnick@quassel-irc.org>
Sat, 21 Jan 2012 18:52:15 +0000 (19:52 +0100)
committerManuel Nickschas <sputnick@quassel-irc.org>
Sat, 21 Jan 2012 18:52:15 +0000 (19:52 +0100)
commit98bec7bab038a8e656f90617c59fe1e8c0907f71
tree1566aa7540e51f807a9f816931a830d9bea1794c
parent2deb46a3ce819c709800f1ded9072e62807b9574
Fix and improve logging support

It's really inefficient to parse command line options and open the logfile on every message
we log, so move that into the global Quassel class instead. Also fix CMakeLists.txt to
actually enably syslog support in the code, and allow for logging to both syslog and a file.
CMakeLists.txt
src/common/logger.cpp
src/common/logger.h
src/common/main.cpp
src/common/quassel.cpp
src/common/quassel.h