Using warn to print messages to log

44 views
Skip to first unread message

Alexey Kuznetsov

unread,
Apr 19, 2015, 10:58:10 AM4/19/15
to mojol...@googlegroups.com
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.

Sergey Andreev

unread,
Apr 19, 2015, 12:39:39 PM4/19/15
to mojol...@googlegroups.com
$c->app->log->info("string");
or warn..debug 
see Mojo:Log for details.


--
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 mojolicious...@googlegroups.com.
To post to this group, send email to mojol...@googlegroups.com.
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.



--
Sergey Andreev
Reply all
Reply to author
Forward
0 new messages