Skip to content

Commit

Permalink
better Mojo::Log descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Oct 29, 2011
1 parent 4b790dc commit 942c252
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions lib/Mojo/Log.pm
Expand Up @@ -140,21 +140,22 @@ L<Mojo::Log> implements the following attributes.
my $handle = $log->handle;
$log = $log->handle(IO::File->new);
Logfile handle.
Logfile handle used by default C<message> event, defaults to opening C<path>
or C<STDERR>.
=head2 C<level>
my $level = $log->level;
$log = $log->level('debug');
Log level.
Active log level.
=head2 C<path>
my $path = $log->path
$log = $log->path('/var/log/mojo.log');
Logfile path.
Logfile path used by C<handle>.
=head1 METHODS
Expand Down Expand Up @@ -238,7 +239,7 @@ Check for warn log level.
$log = $log->log(debug => 'This should work');
Log a message.
Emit C<message> event.
=head2 C<warn>
Expand Down
2 changes: 1 addition & 1 deletion t/mojo/eventemitter.t
Expand Up @@ -110,7 +110,7 @@ is $once, 1, 'event was not emitted again';
$e->emit('one_time');
is $once, 1, 'event was not emitted again';

# Remove subscribers
# Unsubscribe
$e = Mojo::EventEmitter->new;
my $counter = 0;
$cb = $e->on(foo => sub { $counter++ });
Expand Down

0 comments on commit 942c252

Please sign in to comment.