File: replace_log.t

package info (click to toggle)
liblog-any-perl 1.717-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 448 kB
  • sloc: perl: 1,499; makefile: 11
file content (14 lines) | stat: -rw-r--r-- 280 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use strict;
use warnings;
use Test::More;
use Log::Any qw($log), proxy_class => 'Test';
use Log::Any::Adapter ();

plan tests => 1;

Log::Any::Adapter->set('Test');
$log->info("for main");
$log->category_contains_ok(
    main => qr/for main/,
    'main log appeared in memory'
);