[tpm] Playing with Dancer (beginner assistance required)

J. Bobby Lopez jbl at jbldata.com
Tue Mar 29 10:01:13 PDT 2011


Hey Dave,

I just added two lines to the default config.yml:
logger: 'file'
log: 'core'

I'm running the app via ./bin/app.pl, yes.

Didn't modify development.yml, but see that it is the following:

logger: "console"
log: "core"
warnings: 1
show_errors: 1
auto_reload: 0

On Tue, Mar 29, 2011 at 12:51 PM, Dave Doyle <dave.s.doyle at gmail.com> wrote:

> 1) How are you running the app?  Just perl bin/app.pl?
> 2) Can you post the contents of config.yml and
> environments/development.yml? ( less passwordy-bits of course)
>
> Thanks,
> D
> --
> dave.s.doyle at gmail.com
>
>
> On Tue, Mar 29, 2011 at 12:44 PM, J. Bobby Lopez <jbl at jbldata.com> wrote:
>
>> So I started playing with Dancer, and am trying to figure out how to
>> enable logging.
>>
>> I've seen the Dancer Cookbook, and saw the Dancer::Config stuff:
>>
>> Dancer::Config::setting('appdir',$appdir);
>> Dancer::Config::load();
>>
>> 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:
>>
>> debug "hey it's me";
>>
>> It doesn't log to the console or any log file.  No log file is created in
>> the appdir/.
>>
>> What am I missing?
>>
>> Thanks,
>> -Bobby
>>
>> _______________________________________________
>> toronto-pm mailing list
>> toronto-pm at pm.org
>> http://mail.pm.org/mailman/listinfo/toronto-pm
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/toronto-pm/attachments/20110329/ff6776d6/attachment.html>


More information about the toronto-pm mailing list