line number in logging python

39

line number in logging python -

%(lineno)d Source line number where the logging call was issued (if available)

formatter = logging.Formatter('[%(asctime)s] p%(process)s {%(pathname)s:%(lineno)d} %(levelname)s - %(message)s','%m-%d %H:%M:%S')

Comments

Submit
0 Comments