cascade\Cascade::logger PHP Method

logger() public static method

Alias of getLogger
See also: getLogger
public static logger ( string $name ) : Logger
$name string Name of the requested Logger instance
return Monolog\Logger Requested instance of Logger or new instance
    public static function logger($name)
    {
        return self::getLogger($name);
    }

Usage Example

Ejemplo n.º 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);
 }