Understood.. I thought it was the other way around (config.yml overrides development.yml).  Logging works now, thanks!<br><br><div class="gmail_quote">On Tue, Mar 29, 2011 at 1:07 PM, Dave Doyle <span dir="ltr"><<a href="mailto:dave.s.doyle@gmail.com">dave.s.doyle@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Okay, stuff in the development.yaml will override stuff in config.yml (the intent is so you can have difference loggers, log levels, etc for production/dev) so it's going to change the logger to a console logger so you should see it directly in the output (not sure why you don't). You can try yanking the log stuff out of config.yml and change the development.yml to logger to "file".  It should then log to log/development.log.<div>
<div class="im">
<div>--</div><a href="mailto:dave.s.doyle@gmail.com" target="_blank">dave.s.doyle@gmail.com</a><br>
<br><br></div><div><div class="h5"><div class="gmail_quote">On Tue, Mar 29, 2011 at 1:01 PM, J. Bobby Lopez <span dir="ltr"><<a href="mailto:jbl@jbldata.com" target="_blank">jbl@jbldata.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div>Hey Dave,<br></div><div><br></div><div>I just added two lines to the default config.yml:</div><div>logger: 'file'</div><div>log: 'core'</div><div><br></div><div>I'm running the app via ./bin/<a href="http://app.pl" target="_blank">app.pl</a>, yes.</div>


<div><br></div><div>Didn't modify development.yml, but see that it is the following:</div><div><br></div><div>logger: "console"</div><div>log: "core"</div><div>warnings: 1</div><div>show_errors: 1</div>


<div>auto_reload: 0</div><div><div><br><div class="gmail_quote">On Tue, Mar 29, 2011 at 12:51 PM, Dave Doyle <span dir="ltr"><<a href="mailto:dave.s.doyle@gmail.com" target="_blank">dave.s.doyle@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
1) How are you running the app?  Just perl bin/<a href="http://app.pl" target="_blank">app.pl</a>?<div>2) Can you post the contents of config.yml and environments/development.yml? ( less passwordy-bits of course)</div><div>


<br></div><div>
Thanks,</div><div>D</div><div><div>--</div><a href="mailto:dave.s.doyle@gmail.com" target="_blank">dave.s.doyle@gmail.com</a><br>
<br><br><div class="gmail_quote"><div><div>On Tue, Mar 29, 2011 at 12:44 PM, J. Bobby Lopez <span dir="ltr"><<a href="mailto:jbl@jbldata.com" target="_blank">jbl@jbldata.com</a>></span> wrote:<br></div></div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>
<div>So I started playing with Dancer, and am trying to figure out how to enable logging.<br></div><div><br></div><div>I've seen the Dancer Cookbook, and saw the Dancer::Config stuff:</div><div><br></div><div>        Dancer::Config::setting('appdir',$appdir);<br>




        Dancer::Config::load();<br></div><div><br></div><div>And I added the 'logger' and 'log' items to the config.yml file, but when I try to use a simple debug statement, such as:</div><div><br></div><div>




debug "hey it's me";</div><div><br></div><div>It doesn't log to the console or any log file.  No log file is created in the appdir/.</div><div><br></div><div>What am I missing?<br><br>Thanks,<br></div><font color="#888888"><div>




-Bobby</div>
</font><br></div></div>_______________________________________________<br>
toronto-pm mailing list<br>
<a href="mailto:toronto-pm@pm.org" target="_blank">toronto-pm@pm.org</a><br>
<a href="http://mail.pm.org/mailman/listinfo/toronto-pm" target="_blank">http://mail.pm.org/mailman/listinfo/toronto-pm</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br>
</div></div></blockquote></div><br></div></div></div>
</blockquote></div><br>