Where can I check tornado's log file?

前端 未结 4 588
旧巷少年郎
旧巷少年郎 2020-12-28 20:57

I think there was a default log file, but I didn\'t find it yet.

Sometimes the HTTP request process would throw an exception on the screen, but I suggest it also goe

4条回答
  •  隐瞒了意图╮
    2020-12-28 21:18

    With newer versions, you may do

    args = sys.argv
    args.append("--log_file_prefix=/opt/logs/my_app.log")
    tornado.options.parse_command_line(args)
    

    or as @ColeMaclean mentioned, providing

    --log_file_prefix=PATH 
    

    at command line

提交回复
热议问题