Beispiel #1
0
 public function setup()
 {
     // easier to do this here than as a property, since we use functions.
     $this->_config = array('adapters' => array(array('adapter' => 'Solar_Log_Adapter_File', 'events' => 'debug', 'file' => Solar_File::tmp('test_solar_log_adapter_multi.debug.log'), 'format' => '%e %m'), array('adapter' => 'Solar_Log_Adapter_File', 'events' => 'info, notice', 'file' => Solar_File::tmp('test_solar_log_adapter_multi.other.log'), 'format' => '%e %m')));
     parent::setup();
     @unlink($this->_config['adapters'][0]['file']);
     @unlink($this->_config['adapters'][1]['file']);
 }
Beispiel #2
0
 protected function _preConfig()
 {
     $file = Solar_File::tmp('test_solar_log_adapter_file.log');
     $this->_Test_Solar_Log_Adapter_File['file'] = $file;
 }
Beispiel #3
0
 public function setup()
 {
     $this->_config['file'] = Solar_File::tmp('test_solar_log_adapter_file.log');
     parent::setup();
     @unlink($this->_config['file']);
 }
Beispiel #4
0
 protected function _preConfig()
 {
     // easier to do this here than as a property, since we use functions.
     $this->_Test_Solar_Log_Adapter_Multi = array('adapters' => array(array('adapter' => 'Solar_Log_Adapter_File', 'events' => 'debug', 'file' => Solar_File::tmp('test_solar_log_adapter_multi.debug.log'), 'format' => '%e %m'), array('adapter' => 'Solar_Log_Adapter_File', 'events' => 'info, notice', 'file' => Solar_File::tmp('test_solar_log_adapter_multi.other.log'), 'format' => '%e %m')));
 }