2 # -*- coding: utf-8 -*-
5 Copyright (C) 2007 Christoph Würstle
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License version 2 as
8 published by the Free Software Foundation.
17 _moduleLogger = logging.getLogger(__name__)
18 sys.path.append("/opt/dialcentral/lib")
25 if __name__ == "__main__":
27 os.makedirs(constants._data_path_)
32 logFormat = '(%(relativeCreated)5d) %(levelname)-5s %(threadName)s.%(name)s.%(funcName)s: %(message)s'
33 logging.basicConfig(level=logging.DEBUG, filename=constants._user_logpath_, format=logFormat)
34 _moduleLogger.info("%s %s-%s" % (constants.__app_name__, constants.__version__, constants.__build__))
35 _moduleLogger.info("OS: %s" % (os.uname()[0], ))
36 _moduleLogger.info("Kernel: %s (%s) for %s" % os.uname()[2:])
37 _moduleLogger.info("Hostname: %s" % os.uname()[1])