NAME

Mojolicious::Plugin::Logrotate

VERSION

version 0.03

SYNOPSIS

package App;
use Mojo::Base 'Mojolicious';
use Mojo::File qw/curfile/;

sub startup {
    my $self = shift;

    # 裁剪项目家目录、运行模式和项目名称
    my $home    = curfile->dirname->sibling;
    my $mode    = $self->app->mode;

    $self->plugin( 'Mojolicious::Plugin::Logrotate', {mode => $mode, home => $home} );
}

SUPPORT

Bugs / Feature Requests

Please report any bugs or feature requests through the issue tracker at https://github.com/ciscolive/mojolicious-plugin-logrotate/issues. You will be notified automatically of any progress on your issue.

Source Code

This is open source software. The code repository is available for public review and contribution under the terms of the license.

https://github.com/ciscolive/mojolicious-plugin-logrotate

git clone git://github.com/ciscolive/mojolicious-plugin-logrotate.git

AUTHOR

WENWU YAN <careline@cpan.org>

CONTRIBUTOR

WENWU YAN <careline@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2022 by WENWU YAN.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.