Custom SugarCRM Logger

I Saw this on a post and thought it was worth hanging on to

 

 

?>

 

 

To log to the new file do the following. Im sure the $casLog should be $myLogger

<?php

require_once ‘custom/Company/Helper/Logger.php’;
$myLogger = new custom_Company_Helper_Logger();
$casLog->log(‘fatal’, ‘My comment logged with fatal level’);