If your are on a *nix system you can use filesystem level links. I.e.
linking your my_app/log directory to the system location of your choice.
You may even be able to do this on other systems but I don't know.
For example:
cd my_app
ln -s /var/log/mojo/my_app log
Make sure filesystem permissions are correct.
Also $self->log->path seems like it is meant to change the path of the
log _file_ not the log _directory_. But I could be missing something.
With a quick test I managed to move my log file to various files under
various directories with $self->log->path('/foo/bar/baz.log') etc in
startup. The only problem I ran into were system permissions (but
that's to be expected).
Wes
Don't do it in startup, do it in your xxx_mode subs:
sub development_mode {
shift->log->path(undef);
}
sub production_mode {
shift->log->path('/my/log/file');
}
sub startup {
…
}
-- ams
2012/2/29 Abhijit Menon-Sen <a...@toroid.org>:
> --
> You received this message because you are subscribed to the Google Groups "Mojolicious" group.
> To post to this group, send email to mojol...@googlegroups.com.
> To unsubscribe from this group, send email to mojolicious...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/mojolicious?hl=en.
>
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/groups/opt_out.