NAME

Catalyst::Model::Cronolog - Cronolog Model Class

SYNOPSIS

./script/myapp_create.pl model Cronolog Cronolog

package MyApp::Model::Cronolog;
use strict;
use warnings;
use base qw(Catalyst::Model::Cronolog);

__PACKAGE__->config(
  cronolog => "/path/to/cronolog",
  template => "path/to/log/%Y/%m/mylog.log"
);

# In your app..

$c->model('Cronolog')->create("Line to log");

DESCRIPTION

This is a simple model that allows you easy data store by means for cronolog. See http://cronolog.org for details on how cronolog works.

C::M::Cronolog wraps cronolog so that you can keep writing data to files without having to rotate and/or otherwise manipulate the files.

CONFIGURATION

You must set the following parameters in your model config:

cronolog

Specifies the path to the cronolog executable. This is typically /usr/local/sbin/cronolog in a unix-like system

template

Specifies the template name for cronolog to use.

AUTHOR

Copyright (c) 2007 Daisuke Maki <daisuke@endeworks.jp> All rights reserved.