summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2017-12-12 17:17:31 +0200
committerSergey Poznyakoff <gray@gnu.org>2017-12-12 17:17:31 +0200
commit763ad3a6fb6d67a2efe34a803dbd27f5b5500b54 (patch)
tree079253772db928db11eb4b21a1fc4e0e41d27256
parent1a0640483dbf546f335e85fb7cca9a8d7bac7fe3 (diff)
downloadmojosyslog-763ad3a6fb6d67a2efe34a803dbd27f5b5500b54.tar.gz
mojosyslog-763ad3a6fb6d67a2efe34a803dbd27f5b5500b54.tar.bz2
Improve docs
-rw-r--r--lib/Mojo/Log/Syslog.pm14
1 files changed, 11 insertions, 3 deletions
diff --git a/lib/Mojo/Log/Syslog.pm b/lib/Mojo/Log/Syslog.pm
index 621301f..4582037 100644
--- a/lib/Mojo/Log/Syslog.pm
+++ b/lib/Mojo/Log/Syslog.pm
@@ -113,6 +113,12 @@ Sets minimum logging level. See B<Mojo::Log>, for a list of levels.
=back
+=head1 METHODS
+
+All methods are inherited from B<Mojo::Log>. The methods B<debug>, B<warn>,
+B<info>, and B<error> log their messages using the corresponding B<syslog>
+priorities. The method B<fatal> uses the C<crit> (B<LOG_CRIT>) priority.
+
=head1 EXAMPLE
=head2 Using with Mojolicious::Lite
@@ -121,7 +127,7 @@ Sets minimum logging level. See B<Mojo::Log>, for a list of levels.
use Mojo::Log::Syslog;
my $logger = new Mojo::Log::Syslog(facility => 'local0',
- level => warn);
+ level => 'warn');
app->log($logger);
=head2 Using with Mojolicious
@@ -133,14 +139,16 @@ Sets minimum logging level. See B<Mojo::Log>, for a list of levels.
my $self = shift;
my $logger = new Mojo::Log::Syslog(facility => 'local0',
- level => warn);
+ level => 'warn');
$self->app->log($logger);
}
=head1 SEE ALSO
B<Mojo::Log>(3),
-L<Mojolicious>, L<Mojolicious::Guides>, L<http://mojolicious.org>,
+B<Mojolicious>(3),
+B<Mojolicious::Guides>(1),
+L<http://mojolicious.org>.
=cut

Return to:

Send suggestions and report system problems to the System administrator.