wechaty / python-wechaty-puppet

Python Puppet Provider Abstraction for Wechaty
https://pypi.org/project/wechaty-puppet/
Apache License 2.0
12 stars 11 forks source link

a beautiful color logger is wanted. #34

Open wj-Mcat opened 3 years ago

wj-Mcat commented 3 years ago

I think there should be a improvement for logger: beautiful log message format can make us happy.

tools:

Pr is welcome ~

wj-Mcat commented 3 years ago

In related works, I use loguru loguru a lot. So, I suggest this tool for python-wechaty.

huan commented 3 years ago

Using an existing logger module/package would be great!

The reason TS/JS Wechaty is using brolog which is written by myself is very simple: I want to use a logger which can compatible with the Node.js & Browser environment together.

If we do not consider the Browser, like Python Wechaty (other Polyglot as well), we can consider using a more mature solution other than writing by ourselves.

wj-Mcat commented 3 years ago

python-wechaty will not consider browser platform in recent past, so I try to use mature solution for logger.

This is my consideration: beautiful & mature.

If we will use other tool for logger in future, we should only change the implementation of get_logger in wechaty_puppet.