From 763ad3a6fb6d67a2efe34a803dbd27f5b5500b54 Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Tue, 12 Dec 2017 17:17:31 +0200 Subject: Improve docs --- lib/Mojo/Log/Syslog.pm | 14 +++++++++++--- 1 file 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, for a list of levels. =back +=head1 METHODS + +All methods are inherited from B. The methods B, B, +B, and B log their messages using the corresponding B +priorities. The method B uses the C (B) priority. + =head1 EXAMPLE =head2 Using with Mojolicious::Lite @@ -121,7 +127,7 @@ Sets minimum logging level. See B, 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, 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(3), -L, L, L, +B(3), +B(1), +L. =cut -- cgit v1.2.1