#! /usr/bin/env false use v6.d; use Log::Level; #| The role for a Log implementation. unit role Log::Implementation; # Methods for handling plain string messages. multi method emergency (Str:D $) { * } multi method alert (Str:D $) { * } multi method critical (Str:D $) { * } multi method error (Str:D $) { * } multi method warning (Str:D $) { * } multi method notice (Str:D $) { * } multi method info (Str:D $) { * } multi method debug (Str:D $) { * } # Methods for handling formatted messages. 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 $, *@) { * } multi method warning (Str:D $, *@) { * } multi method notice (Str:D $, *@) { * } multi method info (Str:D $, *@) { * } multi method debug (Str:D $, *@) { * } # Method for configuration multi method add-output (IO::Handle:D $, Int() $ where Log::Level::Emergency ≤ * ≤ Log::Level::Debug, Callable $?) { * } =begin pod =NAME Log::Abstract =VERSION 0.1.1 =AUTHOR Patrick Spek