Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socketโs License Enforcement Beta. Set up your License Policy and secure your software!
.. image:: https://readthedocs.org/projects/vislog/badge/?version=latest :target: https://vislog.readthedocs.io/en/latest/ :alt: Documentation Status
.. image:: https://github.com/MacHu-GWU/vislog-project/actions/workflows/main.yml/badge.svg :target: https://github.com/MacHu-GWU/vislog-project/actions?query=workflow:CI
.. image:: https://codecov.io/gh/MacHu-GWU/vislog-project/branch/main/graph/badge.svg :target: https://codecov.io/gh/MacHu-GWU/vislog-project
.. image:: https://img.shields.io/pypi/v/vislog.svg :target: https://pypi.python.org/pypi/vislog
.. image:: https://img.shields.io/pypi/l/vislog.svg :target: https://pypi.python.org/pypi/vislog
.. image:: https://img.shields.io/pypi/pyversions/vislog.svg :target: https://pypi.python.org/pypi/vislog
.. image:: https://img.shields.io/badge/Release_History!--None.svg?style=social :target: https://github.com/MacHu-GWU/vislog-project/blob/main/release-history.rst
.. image:: https://img.shields.io/badge/STAR_Me_on_GitHub!--None.svg?style=social :target: https://github.com/MacHu-GWU/vislog-project
.. image:: https://img.shields.io/badge/Link-Document-blue.svg :target: https://vislog.readthedocs.io/en/latest/
.. image:: https://img.shields.io/badge/Link-API-blue.svg :target: https://vislog.readthedocs.io/en/latest/py-modindex.html
.. image:: https://img.shields.io/badge/Link-Install-blue.svg
:target: install
_
.. image:: https://img.shields.io/badge/Link-GitHub-blue.svg :target: https://github.com/MacHu-GWU/vislog-project
.. image:: https://img.shields.io/badge/Link-Submit_Issue-blue.svg :target: https://github.com/MacHu-GWU/vislog-project/issues
.. image:: https://img.shields.io/badge/Link-Request_Feature-blue.svg :target: https://github.com/MacHu-GWU/vislog-project/issues
.. image:: https://img.shields.io/badge/Link-Download-blue.svg :target: https://pypi.org/pypi/vislog#files
vislog
Documentation.. image:: https://vislog.readthedocs.io/en/latest/_static/vislog-logo.png :target: https://vislog.readthedocs.io/en/latest/
vislog
is a ZERO-dependency logging library that brings visual effect to your logging message. It allows you to use any logging library you like, and just add visual effect.
.. code-block:: python
@logger.emoji_block(msg="build", emoji="๐ญ")
def run_build():
time.sleep(1)
logger.info("run build")
@logger.emoji_block(msg="test", emoji="๐งช")
def run_test():
time.sleep(1)
logger.info("run test")
with logger.nested():
run_build()
@logger.emoji_block(msg="deploy", emoji="๐")
def run_deploy():
time.sleep(1)
logger.info("run deploy")
with logger.nested():
run_test()
run_deploy()
Will show:
.. code-block::
[User 2024-06-16 15:06:44] +----- ๐ ๐ Start 'deploy' -----------------------------------------------------+
[User 2024-06-16 15:06:44] ๐
[User 2024-06-16 15:06:45] ๐ run deploy
[User 2024-06-16 15:06:45] ๐ +----- ๐ ๐งช Start 'test' -----------------------------------------------------+
[User 2024-06-16 15:06:45] ๐ ๐งช
[User 2024-06-16 15:06:46] ๐ ๐งช run test
[User 2024-06-16 15:06:46] ๐ ๐งช +----- ๐ ๐ญ Start 'build' --------------------------------------------------+
[User 2024-06-16 15:06:46] ๐ ๐งช ๐ญ
[User 2024-06-16 15:06:47] ๐ ๐งช ๐ญ run build
[User 2024-06-16 15:06:47] ๐ ๐งช ๐ญ
[User 2024-06-16 15:06:47] ๐ ๐งช +----- โฐ โ
๐ญ End 'build', elapsed = 1.01 sec ------------------------------+
[User 2024-06-16 15:06:47] ๐ ๐งช
[User 2024-06-16 15:06:47] ๐ +----- โฐ โ
๐งช End 'test', elapsed = 2.02 sec ---------------------------------+
[User 2024-06-16 15:06:47] ๐
[User 2024-06-16 15:06:47] +----- โฐ โ
๐ End 'deploy', elapsed = 3.03 sec ---------------------------------+
.. _install:
vislog
is released on PyPI, so all you need is to:
.. code-block:: console
$ pip install vislog
To upgrade to latest version:
.. code-block:: console
$ pip install --upgrade vislog
FAQs
Bring visual effect to your logging message.
We found that vislog demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.ย It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Ensure open-source compliance with Socketโs License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.