[Twisted-Python] Help with log
Jan. 25, 2016
7:22 a.m.
Hi All! Tell me how to wait for the start of the log on twistd. When I start twistd - i see print out in log in stdout. log.msg("123") now work. from twisted.application.service import Application from twisted.python.log import ILogObserver, FileLogObserver from twisted.python.logfile import DailyLogFile # from twisted.python import log from raspberry.raspberry import Raspberry from raspberry.config import config application = Application("raspberry") logfile = DailyLogFile(config["log_file"], config["log_path"]) application.setComponent(ILogObserver, FileLogObserver(logfile).emit) runner = Raspberry(application, config) runner.run() Thanks!
3295
Age (days ago)
3295
Last active (days ago)
0 comments
1 participants
participants (1)
-
a@runtel.ru