예제 #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']);
 }
예제 #2
0
파일: File.php 프로젝트: agentile/foresmo
 protected function _preConfig()
 {
     $file = Solar_File::tmp('test_solar_log_adapter_file.log');
     $this->_Test_Solar_Log_Adapter_File['file'] = $file;
 }
예제 #3
0
 public function setup()
 {
     $this->_config['file'] = Solar_File::tmp('test_solar_log_adapter_file.log');
     parent::setup();
     @unlink($this->_config['file']);
 }
예제 #4
0
파일: Multi.php 프로젝트: agentile/foresmo
 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')));
 }