I wonder what kind of output you expect...

So when I start the test apps with log level "debug", I see this 
in test1/log/development.log
[Thu Apr 30 23:09:30 2015] [debug] Routing to a callback
[Thu Apr 30 23:09:30 2015] [debug] Rendering template "index.html.ep"
[Thu Apr 30 23:09:30 2015] [debug] 200 OK (0.001527s, 654.879/s)

...and this is what starter.pl logs:
[Thu Apr 30 23:09:30 2015] [debug] GET "/"
[Thu Apr 30 23:09:30 2015] [debug] Routing to application "Test1"

So... maybe you don't see anything, because hypnotoad (which toadfarm use 
to run the application) sets the log level to "info"...? The reason why the 
log level is "info" and not "debug" under hypnotoad is because it will 
MOJO_MODE=production, unless you have set something custom, which again 
affect the log level:
* https://metacpan.org/pod/Mojolicious#mode
* https://metacpan.org/pod/Mojo::Server::Hypnotoad#DESCRIPTION


Btw (not related): I see that you start the script with "sudo" and listen 
to port 80. I suggest you have a look at these resources regarding this:
* 
https://groups.google.com/forum/?utm_source=digest&utm_medium=email#!topic/mojolicious/M_xB_Vy7e8g
* 
https://metacpan.org/pod/Toadfarm::Manual::RunningToadfarm#Listen-to-standard-HTTP-ports
* https://metacpan.org/pod/Toadfarm::Manual::DSL#run_as


On Thursday, April 30, 2015 at 4:45:39 PM UTC+2, mjb152 wrote:
>
> Jan - I'm currently running with 2 apps mounted on different domains, all 
> works well ... except I get absolutely no logging output.
> I expected the log files in each app to be written to as normal , unless I 
> override it.  
> If I start each app with morbo, then logging works,   but if I use 
> Toadfarm with *sudo ./starter.pl <http://starter.pl> start * , then I get 
> no output.  Can you advise why ?
> I've built this very basic example to demonstrate the issue I'm having.
> https://github.com/mjb152/toadtest
>
> On Mon, Apr 27, 2015 at 11:29 AM, mjb152 <[email protected]> wrote:
>
>> regex...works perfectly, thx.
>>
>> I'm not using logging(), I'll play around some more with different 
>> configs, but the config is as basic as the code I posted above.
>>
>> -- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "Mojolicious" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/mojolicious/WFh3C3elp9Y/unsubscribe.
>> To unsubscribe from this group and all its topics, 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.
>>
>
>

-- 
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.

Reply via email to