---
name: "Catalyst::Plugin::Log::Dispatch"
section: "3pm"
platform: "linux"
package: "libcatalyst-plugin-log-dispatch-perl"
version: "0.121-3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Catalyst::Plugin::Log::Dispatch"
---

# Catalyst::Plugin::Log::Dispatch(3pm)

Log module of Catalyst that uses Log::Dispatch

## NAME

Catalyst::Plugin::Log::Dispatch - Log module of Catalyst that uses Log::Dispatch

## VERSION

This document describes Catalyst::Plugin::Log::Dispatch version 2.15

## SYNOPSIS

```
    package MyApp;
    use Catalyst qw/Log::Dispatch/;
```

configuration in source code

```
    MyApp->config->{ Log::Dispatch } = [
        {
         class     => 'File',
         name      => 'file',
         min_level => 'debug',
         filename  => MyApp->path_to('debug.log'),
         format    => '[%p] %m %n',
        }];
```

in myapp.yml

```
    Log::Dispatch:
     - class: File
       name: file
       min_level: debug
       filename: __path_to(debug.log)__
       mode: append
       format: '[%p] %m %n'
```

If you use Catalyst::Plugin::ConfigLoader, please load this module after Catalyst::Plugin::ConfigLoader.

## DESCRIPTION

Catalyst::Plugin::Log::Dispatch is a plugin to use Log::Dispatch from Catalyst.

## CONFIGURATION

It is same as the configuration of Log::Dispatch excluding "class" and "format".

- class

  The class name to Log::Dispatch::\* object. Please specify the name just after "Log::Dispatch::" of the class name.

- format

  It is the same as the format option of Log::Dispatch::Config.

## DEPENDENCIES

Catalyst, Log::Dispatch, Log::Dispatch::Config

## AUTHOR

Shota Takayama  `"<shot[at]bindstorm.jp>"`

## LICENCE AND COPYRIGHT

Copyright (c) 2006, Shota Takayama `"<shot[at]bindstorm.jp>"`. All rights reserved.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.
