| lib/Dancer/Logger/Console.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| statement | 9 | 11 | 81.8 |
| branch | n/a | ||
| condition | n/a | ||
| subroutine | 3 | 4 | 75.0 |
| pod | n/a | ||
| total | 12 | 15 | 80.0 |
| line | stmt | bran | cond | sub | pod | time | code |
|---|---|---|---|---|---|---|---|
| 1 | package Dancer::Logger::Console; | ||||||
| 2 | our $AUTHORITY = 'cpan:SUKRIA'; | ||||||
| 3 | #ABSTRACT: console-based logging engine for Dancer | ||||||
| 4 | $Dancer::Logger::Console::VERSION = '1.3521'; | ||||||
| 5 | 1 | 1 | 476 | use strict; | |||
| 1 | 2 | ||||||
| 1 | 31 | ||||||
| 6 | 1 | 1 | 5 | use warnings; | |||
| 1 | 8 | ||||||
| 1 | 24 | ||||||
| 7 | 1 | 1 | 9 | use base 'Dancer::Logger::Abstract'; | |||
| 1 | 2 | ||||||
| 1 | 154 | ||||||
| 8 | |||||||
| 9 | sub _log { | ||||||
| 10 | 0 | 0 | my ($self, $level, $message) = @_; | ||||
| 11 | 0 | print STDERR $self->format_message($level => $message); | |||||
| 12 | } | ||||||
| 13 | |||||||
| 14 | 1; | ||||||
| 15 | |||||||
| 16 | __END__ |