Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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')
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #line #number #logging #python
ADD COMMENT
Topic
Name
3+1 =