Permalink
Browse files

per-user log paths

  • Loading branch information...
stnbu committed Sep 29, 2018
1 parent 65abd7f commit bea90fdc8cad0636f366a0623dcc9b8a3c9154f5
Showing with 2 additions and 2 deletions.
  1. +2 −2 instrument.py
@@ -4,10 +4,10 @@
import inspect
from functools import wraps
import logging
import getpass
logger = logging.getLogger('instrumentation')
handler = logging.FileHandler('/var/tmp/instrument.log')
handler = logging.FileHandler('/var/tmp/instrument-{}.log'.format(getpass.getuser()))
formatter = logging.Formatter('%(message)s')
handler.setFormatter(formatter)
logger.addHandler(handler)

0 comments on commit bea90fd

Please sign in to comment.