lib/Net/SyslogNg.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 16 | 39 | 41.0 |
line | l | !l | condition |
---|---|---|---|
68 | 0 | 1 | $opt{'-facility'} // 'local5' |
69 | 0 | 1 | $opt{'-priority'} // 'error' |
70 | 0 | 1 | $opt{'-syslog_port'} // 514 |
71 | 0 | 1 | $opt{'-syslog_host'} // '127.0.0.1' |
81 | 0 | 1 | $opt{'-msg'} // '' |
82 | 0 | 1 | $opt{'-version'} // 1 |
85 | 0 | 1 | $opt{'-message_id'} // '-' |
86 | 0 | 1 | $opt{'-structured_data'} // '-' |
87 | 0 | 1 | $opt{'-application'} // '-' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
80 | 0 | 1 | 0 | $opt{'-pid'} // $$ |
83 | 0 | 1 | 0 | $opt{'-timestamp'} // 'DateTime'->now->iso8601 . '.000Z' |
84 | 0 | 1 | 0 | $opt{'-hostname'} // inet_ntoa((gethostbyname hostname())[4]) |
88 | 0 | 1 | 0 | $opt{'-facility'} // $self->{'facility'} |
89 | 0 | 1 | 0 | $opt{'-priority'} // $self->{'priority'} |
91 | 1 | 0 | 0 | $SYSLOG_FACILITIES{$facility} // croak("Wrong facility: '${facility}'") |
92 | 1 | 0 | 0 | $SYSLOG_PRIORITIES{$priority} // croak("Wrong priority: '${priority}'") |