createLogger() public static method

Create a new Logger object and push it to the registry
See also: Monolog\Logger::__construct
public static createLogger ( string $name, array $handlers = [], array $processors = [] ) : Logger
$name string The logging channel
$handlers array Optional stack of handlers, the first one in the array is called first, etc.
$processors array Optional array of processors
return Monolog\Logger Newly created Logger
 public function testCreateLogger()
 {
     $logger = Cascade::createLogger('test');
     $this->assertTrue($logger instanceof Logger);
     $this->assertEquals('test', $logger->getName());
     $this->assertTrue(Registry::hasLogger('test'));
 }