hpoom / kohana-loggly

A log writer for Kohana 3 that logs to a loggly account.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Log Email

This module is a Log_Writer for Kohana that will send all log messages to a Loggly input.

Installing the Module

The best way to include the module in your project is to link to it as a submodule see Kohana's git guide { git submodule add git://github.com/hpoom/kohana-loggly.git modules/log_loggly git submodule init }

Alternativly you can download the source from GitHub and place it into modules/log_loggly in your project.

Using the Module

Find this line in your bootstrap.php Kohana::$log->attach(new Log_File(APPPATH.'logs'));

Change this to be as follows Kohana::$log->attach( new Log_Loggly( $logglyKey ) );

Where $logglyKey is your Loggly Input Key which can be obtained from your Loggly account.

About

A log writer for Kohana 3 that logs to a loggly account.


Languages

Language:PHP 100.0%