File: MyApp.pm

package info (click to toggle)
liblog-handler-perl 0.90-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 576 kB
  • sloc: perl: 2,758; makefile: 4
file content (15 lines) | stat: -rw-r----- 224 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package MyApp;
use strict;
use warnings;
use Log::Handler myapp => 'LOG';

sub foo {
    LOG->info('message from foo');
}

sub bar {
    my $log = Log::Handler->get_logger('myapp');
    $log->info('message from bar');
}

1;