Skip to content

Commit

Permalink
show how to share a logger with mounted apps
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Feb 12, 2015
1 parent 6df30fc commit 741131a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Mojolicious/Plugin/Mount.pm
Expand Up @@ -41,6 +41,7 @@ Mojolicious::Plugin::Mount - Application mount plugin
$example->to(message => 'It works great!');
my $app = $example->pattern->defaults->{app};
$app->config(foo => 'bar');
$app->log(app->log);
# Mount application with host
plugin Mount => {'example.com' => '/home/sri/myapp.pl'};
Expand Down

0 comments on commit 741131a

Please sign in to comment.