cascade\Cascade::logger PHP 메소드

logger() 공개 정적인 메소드

Alias of getLogger
또한 보기: getLogger
public static logger ( string $name ) : Logger
$name string Name of the requested Logger instance
리턴 Monolog\Logger Requested instance of Logger or new instance
    public static function logger($name)
    {
        return self::getLogger($name);
    }

Usage Example

예제 #1
0
 public function testRegistry()
 {
     // Creates the logger and push it to the registry
     $logger = Cascade::logger('test');
     // We should get the logger from the registry this time
     $logger2 = Cascade::logger('test');
     $this->assertSame($logger, $logger2);
 }