Skip to content

Instantly share code, notes, and snippets.

@yappo
Created September 12, 2013 12:30
Show Gist options
  • Save yappo/6536556 to your computer and use it in GitHub Desktop.
Save yappo/6536556 to your computer and use it in GitHub Desktop.
use strict;
use warnings;
use Path::Tiny;
use File::RotateLogs;
my $log = File::RotateLogs->new(
logfile => path('/tmp')->child('access_log.%Y%m%d%H%M'),
linkname => path('/tmp')->child('access_log')
);
__END__
Attribute (logfile) does not pass the type constraint because: Validation failed for 'Str' with value Path::Tiny=ARRAY(0x7fc872826788) at /Users/dankogai/perl5/perlbrew/perls/perl-5.18/lib/site_perl/5.18.0/darwin-2level/Mouse/Util.pm line 383.
Mouse::Util::throw_error('Mouse::Meta::Attribute=HASH(0x7fc872b92588)', 'Attribute (logfile) does not pass the type constraint because...', 'data', 'Path::Tiny=ARRAY(0x7fc872826788)', 'depth', -1) called at ./aa.pl line 6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment