aboutsummaryrefslogtreecommitdiff
path: root/lib/Log/Abstract.rakumod
AgeCommit message (Collapse)AuthorFilesLines
2020-07-02Rename some stuff aroundPatrick Spek1-56/+0
2020-07-02Bump version to v0.2.0v0.2.0Patrick Spek1-1/+1
2020-07-02Implement raiph's our-scalar suggestionPatrick Spek1-0/+56
This moves the actual Log role to Log::Abstract, but the user-facing interface remains the same due to some EXPORT magic. This little bit of magic makes manual inclusion of Log::Level redundant as well. The suggestion itself concerns a new addition to the module, $Log::instance. This is a "shared" variable in that one part of your program can set it, and others parts can use it wherever. This is potentially favourable over using $*LOG, especially in multi-threaded programs.