aboutsummaryrefslogtreecommitdiff
path: root/lib/Log
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2020-07-02 12:21:33 +0200
committerPatrick Spek <p.spek@tyil.nl>2020-07-02 12:21:33 +0200
commitbe1db7a9c513ec59337f1d1ef57a8402e987c50c (patch)
treed1a13763a20df4922ea29b58fd9d2a27ed0fbcb1 /lib/Log
parente3f290ab0743212e1a31552205753d2210529a09 (diff)
Rename some stuff around
Diffstat (limited to 'lib/Log')
-rw-r--r--lib/Log/Implementation.rakumod (renamed from lib/Log/Abstract.rakumod)7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/Log/Abstract.rakumod b/lib/Log/Implementation.rakumod
index 81ec093..a4ab7db 100644
--- a/lib/Log/Abstract.rakumod
+++ b/lib/Log/Implementation.rakumod
@@ -4,7 +4,8 @@ use v6.d;
use Log::Level;
-unit role Log::Abstract;
+#| The role for a Log implementation.
+unit role Log::Implementation;
# Methods for handling plain string messages.
multi method emergency (Str:D $) { * }
@@ -17,7 +18,7 @@ multi method info (Str:D $) { * }
multi method debug (Str:D $) { * }
# Methods for handling formatted messages.
-multi method emergency (Str:D $, *@) { * }
+multi method emergency (Str:D $template, *@args) { samewith($template.fmt(|@args)) }
multi method alert (Str:D $, *@) { * }
multi method critical (Str:D $, *@) { * }
multi method error (Str:D $, *@) { * }
@@ -32,7 +33,7 @@ multi method add-output (IO::Handle:D $, Int() $ where Log::Level::Emergency ≤
=begin pod
=NAME Log::Abstract
-=VERSION 0.2.0
+=VERSION 0.1.1
=AUTHOR Patrick Spek <p.spek@tyil.nl>
=begin LICENSE