From 94534a9c8c84769148e4f85aec0540608f44898b Mon Sep 17 00:00:00 2001 From: Patrick Spek Date: Thu, 2 Jul 2020 03:50:25 +0200 Subject: Implement raiph's our-scalar suggestion 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. --- META6.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'META6.json') diff --git a/META6.json b/META6.json index 4a84d53..836f696 100644 --- a/META6.json +++ b/META6.json @@ -10,8 +10,9 @@ "perl": "6.d", "provides": { "Log": "lib/Log.rakumod", + "Log::Abstract": "lib/Log/Abstract.rakumod", "Log::Level": "lib/Log/Level.rakumod" }, "source-url": "https://home.tyil.nl/git/raku/Log/", "version": "0.1.1" -} \ No newline at end of file +} -- cgit v1.1