|
@@ -23,6 +23,7 @@ use LogBot::MemCache ();
|
|
|
use LogBot::Util qw( file_for file_time time_to_ymd );
|
|
|
use LogBot::Web::Util qw( channel_from_param channel_topics linkify nick_colour_init render_init rewrite_old_urls );
|
|
|
use Mojo::ByteStream ();
|
|
|
+use Mojo::Log ();
|
|
|
use Mojo::Util qw( dumper );
|
|
|
use Mojolicious::Lite qw( app );
|
|
|
|
|
@@ -58,6 +59,7 @@ app->config(
|
|
|
pid_file => ($ENV{LOGBOT_PID_FILE} // ($RealBin . '/logbot-web.pid')),
|
|
|
},
|
|
|
);
|
|
|
+app->log(Mojo::Log->new(path => $is_production ? '/var/log/logbot/mojo.log' : 'log/mojo.log'));
|
|
|
plugin AccessLog => {
|
|
|
log => ($is_production ? '/var/log/logbot/access.log' : 'log/access.log'),
|
|
|
format => '%h %{X-Network}o - %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i"',
|