initDebugLog() public static method

Initialize debug log
public static initDebugLog ( string $path ) : Logger
$path string
return Monolog\Logger
 public function testDebugStream()
 {
     $file = $this->logfiles['debug'];
     $this->assertFileNotExists($file);
     TelegramLog::initDebugLog($file);
     TelegramLog::debug('my debug');
     $this->assertFileExists($file);
     $this->assertContains('bot_log.DEBUG: my debug', file_get_contents($file));
 }