Christopher Juckins

SysAdmin Tips, Tricks and other Software Tools

User Tools

Site Tools


python_notes

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
python_notes [2020/10/06 07:21] juckinspython_notes [2020/10/06 07:23] juckins
Line 134: Line 134:
      
   $ pip list   $ pip list
-   
-[[https://docs.python.org/3/howto/logging.html|Logging in python]] 
- 
-  logging.basicConfig(format='%(asctime)s %(message)s', filename=log_file, level=logging.DEBUG) 
-  logging.debug('This message should go to the log file') 
-  logging.info('So should this') 
-  logging.warning('And this, too') 
- 
- 
-[[https://realpython.com/python-pep8/|Write beautiful python code with PEP-8]] 
python_notes.txt · Last modified: 2023/04/05 08:56 by juckins