Email Log Writer for Kohana
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


# An Email Log Writer for Kohana.

Angelos Veglektsis <> , <>

	- Copy the watchy folder to MODPATH (modules directory). example (/modules/watchy/classes/watchy.php)
	- Attach the writer to the log class AFTER Kohana::modules init , with the optionally limit of the levels of messages that will be written.
Example bootstrap.php

//This is the default log writer
Kohana::$config->attach(new Config_File); 

	'auth'       => MODPATH.'auth',       // Basic authentication
	'cache'      => MODPATH.'cache',      // Caching with multiple backends
	// 'codebench'  => MODPATH.'codebench',  // Benchmarking tool
	'database'   => MODPATH.'database',   // Database access
	// 'image'      => MODPATH.'image',      // Image manipulation
	'orm'        => MODPATH.'orm',        // Object Relationship Mapping
	// 'unittest'   => MODPATH.'unittest',   // Unit testing
	// 'userguide'  => MODPATH.'userguide',  // User guide and API documentation
	'watchy'        => MODPATH.'watchy',        // Watchy Log Writer

//Attach watchy writer after the modules path inclues. Only write ERROR's and above.
Kohana::$log->attach(new Log_Watchy('Rich Project' , '' , 'Kohana Watchy <>') , Log::ERROR);