$c->app->log->info("string");
or warn..debug
see Mojo:Log for details.2015-04-19 21:58 GMT+07:00 Alexey Kuznetsov <[email protected]>: > Hello! > I use Hypnotoad server as a background process with: > > $ENV{MOJO_MODE} = "development"; > $ENV{MOJO_DAEMON_DEBUG} = 1; > > When I try to print some message to STDERR using *warn "message"*, it > won't be logged to development.log file. > When I use *die "message"*, it appears in the log. > > Is there a tactics to print messages from script to default log files (in > my case development.log)? > > Thanks. > > -- > You received this message because you are subscribed to the Google Groups > "Mojolicious" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/mojolicious. > For more options, visit https://groups.google.com/d/optout. > -- Sergey Andreev -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/mojolicious. For more options, visit https://groups.google.com/d/optout.
