line |
true |
false |
branch |
88
|
0 |
0 |
unless $args{'PARENT'} |
90
|
0 |
0 |
unless $ret = $new->_parent($args{'PARENT'}) |
91
|
0 |
0 |
unless $args{'NAME'} |
93
|
0 |
0 |
unless $ret = $new->name($args{'NAME'}) |
95
|
0 |
0 |
if ($args{'OUTPUT'}) |
96
|
0 |
0 |
unless $ret = $new->output($args{'OUTPUT'}) |
98
|
0 |
0 |
if ($args{'OUTPUT'} eq 'file') { } |
|
0 |
0 |
elsif ($args{'OUTPUT'} eq 'syslog') { } |
99
|
0 |
0 |
unless $args{'FILE'} |
101
|
0 |
0 |
unless $ret = $new->file(%{$args{'FILE'};}) |
104
|
0 |
0 |
unless $args{'SYSLOG'} |
110
|
0 |
0 |
if $args{'SEVERITY'} |
112
|
0 |
0 |
if $args{'PRINT-CATEGORY'} |
114
|
0 |
0 |
if $args{'PRINT-SEVERITY'} |
116
|
0 |
0 |
if $args{'PRINT-TIME'} |
137
|
0 |
0 |
if keys %{$$self{'categories'};} |
139
|
0 |
0 |
unless $ret = Unix::Conf::Bind8::Conf::Logging::_del_channel($self->_parent, $self->name) |
162
|
0 |
0 |
if (defined $name) |
164
|
0 |
0 |
unless $name |
166
|
0 |
0 |
if Unix::Conf::Bind8::Conf::Logging::_is_predef_channel($name) |
168
|
0 |
0 |
if ($$self{'name'}) |
169
|
0 |
0 |
unless $ret = Unix::Conf::Bind8::Conf::Logging::_del_channel($self) |
173
|
0 |
0 |
unless $ret = Unix::Conf::Bind8::Conf::Logging::_add_channel($self) |
179
|
0 |
0 |
$$self{'name'} ? : |
202
|
0 |
0 |
if ($output) |
203
|
0 |
0 |
unless $output =~ /^(syslog|file|null)$/ |
210
|
0 |
0 |
$$self{'output'} ? : |
236
|
0 |
0 |
if ($args{'PATH'}) |
239
|
0 |
0 |
if (defined $args{'VERSIONS'}) |
240
|
0 |
0 |
unless $args{'VERSIONS'} =~ /^(\d+|unlimited)$/ |
244
|
0 |
0 |
if (defined $args{'SIZE'}) |
245
|
0 |
0 |
unless __valid_sizespec($args{'SIZE'}) |
252
|
0 |
0 |
unless $$self{'path'} |
275
|
0 |
0 |
if ($syslog) |
276
|
0 |
0 |
unless $syslog =~ /^(kern|user|mail|daemon|auth|syslog|lpr|news|uucp|cron|authpriv|ftp|local[0-7])$/ |
283
|
0 |
0 |
$$self{'syslog'} ? : |
308
|
0 |
0 |
if ($args{'NAME'}) |
309
|
0 |
0 |
unless $args{'NAME'} =~ /^(critical|error|warning|notice|info|debug|dynamic)$/ |
311
|
0 |
0 |
if $args{'LEVEL'} and $args{'NAME'} ne 'debug' |
318
|
0 |
0 |
unless $$self{'severity'} |
341
|
0 |
0 |
if ($print) |
342
|
0 |
0 |
unless __valid_yesno $print |
349
|
0 |
0 |
$$self{'print-time'} ? : |
372
|
0 |
0 |
if ($print) |
373
|
0 |
0 |
unless __valid_yesno $print |
380
|
0 |
0 |
$$self{'print-category'} ? : |
403
|
0 |
0 |
if ($print) |
404
|
0 |
0 |
unless __valid_yesno $print |
411
|
0 |
0 |
$$self{'print-severity'} ? : |
438
|
0 |
0 |
unless $Channel_Directives{$directive} |
440
|
0 |
0 |
unless $$self{$directive} |
468
|
0 |
0 |
unless $$self{$directive} |
494
|
0 |
0 |
unless @_ |
505
|
0 |
0 |
unless @_ |
510
|
0 |
0 |
unless $$self{'categories'}{$_} |
526
|
0 |
0 |
if (($tmp = $self->output) eq 'file') { } |
|
0 |
0 |
elsif ($tmp eq 'syslog') { } |
|
0 |
0 |
elsif ($tmp eq 'null') { } |
528
|
0 |
0 |
unless $file = $self->file |
530
|
0 |
0 |
if $$file{'VERSIONS'} |
532
|
0 |
0 |
if $$file{'SIZE'} |
543
|
0 |
0 |
if $facility = $self->syslog |
551
|
0 |
0 |
if ($tmp = $self->severity) |
553
|
0 |
0 |
if $$tmp{'LEVEL'} |
557
|
0 |
0 |
if $tmp = $self->print_category |
559
|
0 |
0 |
if $tmp = $self->print_severity |
561
|
0 |
0 |
if $tmp = $self->print_time |
569
|
0 |
0 |
if (defined $_[1]) |
581
|
0 |
0 |
if ($parent) |
584
|
0 |
0 |
if $$self{'PARENT'} |
590
|
0 |
0 |
$$self{'PARENT'} ? : |