liriliri / luna

UI library
https://luna.liriliri.io
MIT License
250 stars 22 forks source link

[luna-console] indistinguishable log levels `log` & `info` #7

Closed ManiaciaChao closed 1 year ago

ManiaciaChao commented 1 year ago

Bugs

Currently,luna-console shares the same implementation between log method log & info, making them technically indistinguishable by a human or a filter function. Developers need extra logic to implement their own log filter.

https://github.com/liriliri/luna/blob/0c71e214f320c5e29aeb1ec42f8e549cfea065f0/src/console/index.ts#L198-L202

https://github.com/liriliri/luna/blob/0c71e214f320c5e29aeb1ec42f8e549cfea065f0/src/console/index.ts#L261-L265

Solution

surunzi commented 1 year ago

Fixed in version 1.3.1