niieani / bash-oo-framework

Bash Infinity is a modern standard library / framework / boilerplate for Bash
https://github.com/niieani/bash-oo-framework/discussions
MIT License
5.57k stars 247 forks source link

[Discussion] Log API #94

Closed haoadoreorange closed 3 years ago

haoadoreorange commented 3 years ago

Hello,

I find the current Logging API a bit unsual in the sense that I need to add a specific Logger to get the context when logging. What if I want most of the time using INFO and on some line DEBUG. Normally in other logging library it is something like Log::DEBUG or Log::INFO.

I see that there alreays is Log::Using, but it doesn't get any context with that. May be it should use the default namespace ?