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.
113 113
114=back 114=back
115 115
116=head1 METHODS
117
118All methods are inherited from B<Mojo::Log>. The methods B<debug>, B<warn>,
119B<info>, and B<error> log their messages using the corresponding B<syslog>
120priorities. The method B<fatal> uses the C<crit> (B<LOG_CRIT>) priority.
121
116=head1 EXAMPLE 122=head1 EXAMPLE
117 123
118=head2 Using with Mojolicious::Lite 124=head2 Using with Mojolicious::Lite
@@ -121,7 +127,7 @@ Sets minimum logging level. See B<Mojo::Log>, for a list of levels.
121 use Mojo::Log::Syslog; 127 use Mojo::Log::Syslog;
122 128
123 my $logger = new Mojo::Log::Syslog(facility => 'local0', 129 my $logger = new Mojo::Log::Syslog(facility => 'local0',
124 level => warn); 130 level => 'warn');
125 app->log($logger); 131 app->log($logger);
126 132
127=head2 Using with Mojolicious 133=head2 Using with Mojolicious
@@ -133,14 +139,16 @@ Sets minimum logging level. See B<Mojo::Log>, for a list of levels.
133 my $self = shift; 139 my $self = shift;
134 140
135 my $logger = new Mojo::Log::Syslog(facility => 'local0', 141 my $logger = new Mojo::Log::Syslog(facility => 'local0',
136 level => warn); 142 level => 'warn');
137 $self->app->log($logger); 143 $self->app->log($logger);
138 } 144 }
139 145
140=head1 SEE ALSO 146=head1 SEE ALSO
141 147
142B<Mojo::Log>(3), 148B<Mojo::Log>(3),
143L<Mojolicious>, L<Mojolicious::Guides>, L<http://mojolicious.org>, 149B<Mojolicious>(3),
150B<Mojolicious::Guides>(1),
151L<http://mojolicious.org>.
144 152
145=cut 153=cut
146 154

Return to:

Send suggestions and report system problems to the System administrator.