merged the encoding plugin to Catalyst.p,
[catagits/Catalyst-Runtime.git] / t / lib / TestLogger.pm
CommitLineData
55046410 1package TestLogger;
2use strict;
3use warnings;
4
5our @LOGS;
c13f6e7e 6our @ILOGS;
55046410 7our @ELOGS;
8
9sub new {
10 return bless {}, __PACKAGE__;
11}
12
13sub debug {
14 shift;
15 push(@LOGS, shift());
16}
17
c13f6e7e 18sub info {
19 shift;
20 push(@ILOGS, shift());
21}
22
55046410 23sub warn {
24 shift;
25 push(@ELOGS, shift());
26}
27
9c38cb50 28sub error { die "Got unexpected error; $_[1]" }
55046410 291;
30