has
handle
=>
sub
{
# STDERR
return
\
*STDERR
unless
my
$path
=
shift
->path;
# File
croak
qq{Can't open log file "$path": $!}
unless
open
my
$file
, '>>',
$path
;
return
$file
;
};
--
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.
Also note this will affect all app log output, including errors.
On Fri, Apr 3, 2015 at 7:55 PM, Dan Book <gri...@gmail.com> wrote:
$app->log->handle(\*STDOUT); (untested)
On Fri, Apr 3, 2015 at 6:04 PM, Nathan Waddell <arafe...@gmail.com> wrote:
After some research, it looks like this is because Mojo::Log defaults to STDERR:has
handle
=>
sub
{
# STDERR
return
\
*STDERR
unless
my
$path
=
shift
->path;
# File
croak
qq{Can't open log file "$path": $!}
unless
open
my
$file
, '>>',
$path
;
return
$file
;
};
How would I configure hypnotoad to use STDOUT for Mojo::Log instead?
On Friday, April 3, 2015 at 2:30:59 PM UTC-5, Nathan Waddell wrote:Setting the MOJO_DAEMON_DEBUG environment variable causes debugging messages to be printed to STDERR. Why does it use STDERR and not STDOUT? Debugging messages aren't errors, they are expected behavior in debugging mode.
--
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+unsubscribe@googlegroups.com.
I am deploying hypnotoad as a foreground process being run and monitored under a service manager. This service manager is designed along UNIX conventions, one of which is that STDERR should be reserved for true errors.
Would there be value seen in a patch that allowed a log path to be used as the value of MOJO_DAEMON_DEBUG?
It would get rejected.
--
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.
This manager uses STDOUT/STDERR for logging/alerting. I am told by The Powers Who Be that the "UNIX philosophy" is that STDERR is for errors.