Sorry, I have been very busy the last few days.
Thanks for your help, this is the solution I created and it works :-)
sub log : Chained('base_admin') PathPart('log') Args(0) { my ( $self, $c ) = @_; my $logfile = $c->path_to('test.log'); $c->response->header('Content-Type' => 'text/plain'); $c->response->header('Content-Disposition' => 'attachment; filename=test.log'); $c->serve_static_file($logfile); }
source share