pip repo is here.
This is a simple echo logger for informative, warning and error messages.
Time and colored printing are supported.
This repository is mostly for my own use, but feel free to use it if you want.
# build (before you do this, don't forget to change the version id in setup.py)
python setup.py sdist bdist_wheel
# upload (before you do this, please rmv the outdated files of previous versions in dist/)
twine upload dist/*
# install
pip install echo-logger
# upgrade
pip install echo-logger --upgrade
Simple usage:
print_info("Hello World!")
print_warn("Hello World!")
print_err("Hello World!")
If you want to print with time:
print_info("Hello World!", with_time=True)
print_warn("Hello World!", with_time=True)
print_err("Hello World!", with_time=True)
If you want nothing to be printed (Let's say, you finished unit testing and want to run the whole program without any logger output):
echo_logger.echo_logger_debug = False # disable any logger functions from echo_logger
print_info("Hello World!")
print_warn("Hello World!")
print_err("Hello World!")
# No output at all.
Just so simple and straightforward.