Show
Ignore:
Timestamp:
11/04/06 17:04:09 (2 years ago)
Author:
v-dogg
Message:

BREAKING CHANGE! Renamed ambiguously named logging classes (AgaviLayout?, AgaviMessage?, AgaviAppender? and friends), closes #323.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/tests2/logging/LoggerManagerTest.php

    r908 r1233  
    2222    @unlink($this->_logfile); 
    2323    @unlink($this->_logfile2); 
    24     $this->_pl = new AgaviPassthruLayout; 
    25     $this->_fa = new AgaviFileAppender; 
     24    $this->_pl = new AgaviPassthruLoggerLayout; 
     25    $this->_fa = new AgaviFileLoggerAppender; 
    2626    $this->_fa->initialize($this->_context, array('file' => $this->_logfile)); 
    2727    $this->_fa->setLayout($this->_pl); 
    28     $this->_fa2 = new AgaviFileAppender; 
     28    $this->_fa2 = new AgaviFileLoggerAppender; 
    2929    $this->_fa2->initialize($this->_context, array('file' => $this->_logfile2)); 
    3030    $this->_fa2->setLayout($this->_pl); 
     
    7272 
    7373    //this should be logged by both 
    74     $this->_lm->log(new AgaviMessage('simple info message', AgaviLogger::INFO)); 
     74    $this->_lm->log(new AgaviLoggerMessage('simple info message', AgaviLogger::INFO)); 
    7575    $this->assertRegexp('/simple info message/', file_get_contents($this->_logfile)); 
    7676    $this->assertRegexp('/simple info message/', file_get_contents($this->_logfile2)); 
    7777 
    7878    //this should be logged only by l2 
    79     $this->_lm->log(new AgaviMessage('simple debug message', AgaviLogger::DEBUG)); 
     79    $this->_lm->log(new AgaviLoggerMessage('simple debug message', AgaviLogger::DEBUG)); 
    8080    $this->assertNotRegexp('/simple debug message/', file_get_contents($this->_logfile)); 
    8181    $this->assertRegexp('/simple debug message/', file_get_contents($this->_logfile2));