| blib/lib/OrePAN2/Logger.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| statement | 4 | 5 | 80.0 |
| branch | n/a | ||
| condition | n/a | ||
| subroutine | 2 | 3 | 66.6 |
| pod | 0 | 2 | 0.0 |
| total | 6 | 10 | 60.0 |
| line | stmt | bran | cond | sub | pod | time | code |
|---|---|---|---|---|---|---|---|
| 1 | package OrePAN2::Logger; | ||||||
| 2 | |||||||
| 3 | 14 | 14 | 1928 | use Moo; | |||
| 14 | 28680 | ||||||
| 14 | 123 | ||||||
| 4 | |||||||
| 5 | # trace | ||||||
| 6 | # debug | ||||||
| 7 | # info (inform) | ||||||
| 8 | 3 | 3 | 0 | 349 | sub info { print STDERR "[INFO] $_[1]\n" } | ||
| 9 | |||||||
| 10 | # notice | ||||||
| 11 | # warning (warn) | ||||||
| 12 | 0 | 0 | 0 | sub warn { print STDERR "[WARN] $_[1]\n" } | |||
| 13 | |||||||
| 14 | # error (err) | ||||||
| 15 | # critical (crit, fatal) | ||||||
| 16 | # alert | ||||||
| 17 | # emergency | ||||||
| 18 | |||||||
| 19 | 1; |