Skip to content

Commit

Permalink
extra docs
Browse files Browse the repository at this point in the history
  • Loading branch information
garu committed Aug 11, 2014
1 parent 38eed8d commit 84110f7
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Expand Up @@ -6,6 +6,25 @@ as the underlying log mechanism. It provides all the methods listed in
Mojo::Log (and many more from Log4perl) so, if you already use Mojo::Log
in your application, there is no need to change a single line of code!

```perl
package MyApp;
use Mojo::Base 'Mojolicious';
use MojoX::Log::Log4perl;

sub startup {
my $self = shift;

# that's all the extra code you need!
$self->log( MojoX::Log::Log4perl->new );

# next, just set up your app's routes as you normally would
}
```

Now all your logging can be controlled via the ```log4perl.conf``` file :)

See the module's documentation for extra information and available methods.


INSTALLATION
------------
Expand Down

0 comments on commit 84110f7

Please sign in to comment.