Alberto Attilio Reggiori > MojoX-Logite > Mojolicious::Plugin::Logite

Download:
MojoX-Logite-0.01.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source  

NAME ^

Mojolicious::Plugin::Logite - Mojo::Log ORLite (Logite) plugin for Mojolicious

SYNOPSIS ^

    # Mojolicious
    $self->plugin('logite');

    # or customized
    $self->plugin('logite' => {
        path  => '/var/log/mojo.db',
        level => 'warn',
        package => 'MyApp::Logite'
        });

    # Mojolicious::Lite
    plugin logite => {
        path  => '/var/log/mojo.db',
        level => 'warn',
        package => 'MyApp::Logite'
        };

DESCRIPTION ^

Mojolicious::Plugin::Logite is a Mojo::Log ORLite (Logite) plugin for Mojolicious.

Options

MojoX::Logite options
  # Mojolicious::Lite
  plugin logite => {
    path  => '/var/log/mojo.db',
    level => 'warn',
    package => 'MyApp::Logite'
  };

Replace default log db settings. See MojoX::Logite documentation.

stash_key
  # Mojolicious::Lite
  plugin logite => {stash_key => 'logdb'};

The plugin automatically register a new DB logger into the 'logite' stash. With this option the name of the stash filed can be customized.

METHODS ^

Mojolicious::Plugin::Logite inherits all methods from Mojolicious::Plugin and implements the following new ones.

register

    $plugin->register;

Register plugin in Mojolicious application.

SEE ALSO ^

MojoX::Logite

Mojolicious

syntax highlighting: