Files
2012-02-21 01:15:00 -05:00

1 line
686 B
JSON

[{"user_id": 21209, "stars": [], "topic_id": 38784, "date_created": 1307636465.1026161, "message": "how can I make django save logs to a File?\nI tried using logging.FileHandler ( http://dpaste.com/552399/ )\nbut I get this error: ValueError: Unable to configure handler 'file': __init__() takes at least 2 arguments (1 given)\nbecause FileHandler need a path", "group_id": 81, "id": 1351589}, {"user_id": 21209, "stars": [], "topic_id": 38784, "date_created": 1307638514.9144411, "message": "resolved:\n\n 'file': {\n 'level': 'WARNING',\n 'class': 'logging.FileHandler',\n 'filename': path('my.log')\n }", "group_id": 81, "id": 1351825}]