Hi All, I'm having some logging issues, that I can't seem to figure out. I have my environment set to development with the following logger settings: logger: "file" log: "core" When I log a "debug" message I'm seeing this error in my main apache error log: (even though I have a virtual host specific error log setup for this app) log directory /var/www/vhost/<appname>/bin/.. isn't writable/executable and can't chmod it at /usr/share/perl5/vendor_perl/Dancer/Logger.pm line 16 According to the docs: "If you're using the file logging engine, a directory appdir/logs will be created and will host one logfile per environment." Why is it saying "bin" isn't writable, when it should be looking for a "logs" directory? Any help would be appreciated Thanks
On Thu, 17 Jan 2013 11:23:01 -0500 James Baer <jamesfbaer@gmail.com> wrote:
log directory /var/www/vhost/<appname>/bin/.. isn't writable/executable and can't chmod it at /usr/share/perl5/vendor_perl/Dancer/Logger.pm line 16
According to the docs: "If you're using the file logging engine, a directory appdir/logs will be created and will host one logfile per environment."
Why is it saying "bin" isn't writable, when it should be looking for a "logs" directory?
Going by the ".." at the end, it's trying to create the "logs" dir in the app dir (for some reason, starting from $appdir/bin and going up a level). Looks like you probably need to create $appdir/logs and ensure it's writeable & executable. -- David Precious ("bigpresh") <davidp@preshweb.co.uk> http://www.preshweb.co.uk/ www.preshweb.co.uk/twitter www.preshweb.co.uk/linkedin www.preshweb.co.uk/facebook www.preshweb.co.uk/cpan www.preshweb.co.uk/github
Yep that did it. Should have tried that first. Thanks On Thu, Jan 17, 2013 at 11:52 AM, David Precious <davidp@preshweb.co.uk>wrote:
On Thu, 17 Jan 2013 11:23:01 -0500 James Baer <jamesfbaer@gmail.com> wrote:
log directory /var/www/vhost/<appname>/bin/.. isn't writable/executable and can't chmod it at /usr/share/perl5/vendor_perl/Dancer/Logger.pm line 16
According to the docs: "If you're using the file logging engine, a directory appdir/logs will be created and will host one logfile per environment."
Why is it saying "bin" isn't writable, when it should be looking for a "logs" directory?
Going by the ".." at the end, it's trying to create the "logs" dir in the app dir (for some reason, starting from $appdir/bin and going up a level).
Looks like you probably need to create $appdir/logs and ensure it's writeable & executable.
-- David Precious ("bigpresh") <davidp@preshweb.co.uk> http://www.preshweb.co.uk/ www.preshweb.co.uk/twitter www.preshweb.co.uk/linkedin www.preshweb.co.uk/facebook www.preshweb.co.uk/cpan www.preshweb.co.uk/github
_______________________________________________ dancer-users mailing list dancer-users@dancer.pm http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
participants (2)
-
David Precious -
James Baer