aboutsummaryrefslogtreecommitdiff
path: root/lib/Log
diff options
context:
space:
mode:
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