+ my ($self, $prefix, $message, %options) = @_;
+
+ my @prefixes = ($prefix);
+
+ if ($options{show_caller}) {
+ my ($package, $filename, $line, $subroutine) = caller(1);
+ push @prefixes, "${filename}:${line}";
+ }
+
+ $prefix = join ' ', grep { $_ } @prefixes;
+