個人服務器用xxx.tac來跑,我想要用DailyLogFile的方法來實現按天記日誌的功能,可是出現了一個很是噁心的問題,按天記日誌的代碼 徹底沒有問題,但就是不能實現按天來記日誌,如下是個人tac代碼服務器
application = service.Application("xproject", uid=1, gid=1)app
logfile = DailyLogFile("game.log", "./game_logs")ui
application.setComponent(ILogObserver, FileLogObserver(logfile).emit) spa
leidian_service = internet.TCPServer(8007,XprojectServerFactory())日誌
leidian_service.setServiceParent(application)server
程序沒有問題,運行也不會報錯,找了好久 才知道是哪的問題。如今跟你們分享下。it
問題出在application = service.Application("xproject", uid=1, gid=1)這句話上,io
將這句話中的uid=1, gid=1去掉 就ok了。我還不知道這是爲何。file