Hypnotoad Logfile

Does Hypnotoad create any log file? I can not find anything about this: http://mojolicio.us/perldoc/Mojo/Server/Hypnotoad Also, the --help option does not say anything about this.

I understand that for the application I need to use things like $self->app->log->error('aua!') ... but does something like server log not exist? (e.g. customer requests, internal errors, etc.)

If the answer is simply no, I'm fine. That would mean that I would need to implement this in my application, I think. I can imagine that it makes sense to keep the server code clean here, maybe this will be the reason for the lack of this function? Or can I turn it on?

+7
perl mojolicious
source share
3 answers

If your application has a log folder, the log will be written there: http://mojolicio.us/perldoc/Mojolicious/Guides/Tutorial#Mode

+10
source share

I don’t think so, but it’s easy to install it.

 use Mojo::Log; ... app->log( Mojo::Log->new( path => <filename>, level => 'debug' ) ); ... app->start; 
+7
source share

app-> log (Mojo :: Log-> new (path =>, level => 'debug'));

Insert it into the launch function

+2
source share

All Articles