1Alien::Build::Log(3)  User Contributed Perl Documentation Alien::Build::Log(3)
2
3
4

NAME

6       Alien::Build::Log - Alien::Build logging
7

VERSION

9       version 2.17
10

SYNOPSIS

12       Create your custom log class:
13
14        package Alien::Build::Log::MyLog;
15
16        use base qw( Alien::Build::Log );
17
18        sub log
19        {
20          my(undef, %opt)  = @_;
21          my($package, $filename, $line) = @{ $opt{caller} };
22          my $message = $opt{message};
23
24          ...;
25        }
26
27       override log class:
28
29        % env ALIEN_BUILD_LOG=Alien::Build::Log::MyLog cpanm Alien::libfoo
30

DESCRIPTION

CONSTRUCTORS

33   new
34        my $log = Alien::Build::Log->new;
35
36       Create an instance of the log class.
37
38   default
39        my $log = Alien::Build::Log->default;
40
41       Return singleton instance of log class used by Alien::Build.
42

METHODS

44   set_log_class
45        Alien::Build::Log->set_log_class($class);
46
47       Set the default log class used by Alien::Build.  This method will also
48       reset the default instance used by Alien::Build.  If not specified,
49       Alien::Build::Log::Default will be used.
50
51   log
52        $log->log(%options);
53
54       Overridable method which does the actual work of the log class.
55       Options:
56
57       caller
58           Array references containing the package, file and line number of
59           where the log was called.
60
61       message
62           The message to log.
63

ENVIRONMENT

65       ALIEN_BUILD_LOG
66           The default log class used by Alien::Build.
67

AUTHOR

69       Author: Graham Ollis <plicease@cpan.org>
70
71       Contributors:
72
73       Diab Jerius (DJERIUS)
74
75       Roy Storey (KIWIROY)
76
77       Ilya Pavlov
78
79       David Mertens (run4flat)
80
81       Mark Nunberg (mordy, mnunberg)
82
83       Christian Walde (Mithaldu)
84
85       Brian Wightman (MidLifeXis)
86
87       Zaki Mughal (zmughal)
88
89       mohawk (mohawk2, ETJ)
90
91       Vikas N Kumar (vikasnkumar)
92
93       Flavio Poletti (polettix)
94
95       Salvador Fandiño (salva)
96
97       Gianni Ceccarelli (dakkar)
98
99       Pavel Shaydo (zwon, trinitum)
100
101       Kang-min Liu (劉康民, gugod)
102
103       Nicholas Shipp (nshp)
104
105       Juan Julián Merelo Guervós (JJ)
106
107       Joel Berger (JBERGER)
108
109       Petr Pisar (ppisar)
110
111       Lance Wicks (LANCEW)
112
113       Ahmad Fatoum (a3f, ATHREEF)
114
115       José Joaquín Atria (JJATRIA)
116
117       Duke Leto (LETO)
118
119       Shoichi Kaji (SKAJI)
120
121       Shawn Laffan (SLAFFAN)
122
123       Paul Evans (leonerd, PEVANS)
124
126       This software is copyright (c) 2011-2020 by Graham Ollis.
127
128       This is free software; you can redistribute it and/or modify it under
129       the same terms as the Perl 5 programming language system itself.
130
131
132
133perl v5.30.2                      2020-03-20              Alien::Build::Log(3)
Impressum