The module contains helper functions needed in my projects.
- pip install git+https://github.com/ldpgh/pyMiniSupport.git
- python -m pip install https://github.com/ldpgh/pyMiniSupport/tarball/master
If the package colorama is installed the loggin functions are
- info -> default color (bright)
- warn -> yellow
- error -> red
according their meaning.
- info
- warn
- error ... does not (yet) stop the program execution
- prog_line
- prog_file
- prog_file_line
pyMiniSupport>>
pyMiniSupport>>python -c "from pyMiniSupport.Log import *; warn('one liner warns you')"
WARNING @ <module>:1 'one liner warns you'
pyMiniSupport>>python -c "from pyMiniSupport.Log import *; error('one liner informs about error')"
ERROR @ <module>:1 'one liner informs about error'
pyMiniSupport>>python -c "from pyMiniSupport.Log import *; info('one liner informs you')"
INFO @ <module>:1 'one liner informs you'
pyMiniSupport>>
pyMiniSupport>>
pyMiniSupport>>python -c "import pyMiniSupport.Tests.testLog"
runTest (pyMiniSupport.Tests.testLog.TestLog) ...
INFO @ runTest:14 'test of pyMiniSupport.info'
WARNING @ runTest:15 'test of pyMiniSupport.warn'
ERROR @ runTest:16 'test of pyMiniSupport.error'
17
runTest
runTest:19
ok
----------------------------------------------------------------------
Ran 1 test in 0.047s
OK
pyMiniSupport>>
pyMiniSupport>>