Skip to content

Commit

Permalink
move log file to ~/.cache
Browse files Browse the repository at this point in the history
  • Loading branch information
ceuk committed Sep 9, 2020
1 parent 22c2b1c commit f6c851d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spotui/src/Logging.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import logging
import os

logging.basicConfig(filename='spotui.log', filemode='w',
user_config_dir = os.path.expanduser("~")
logging.basicConfig(filename=user_config_dir + '/.cache/spotui.log', filemode='w',
format='%(name)s - %(levelname)s - %(message)s')

0 comments on commit f6c851d

Please sign in to comment.