initUpdateLog() public static method

Initilize monolog instance. Singleton Is possbile provide an external monolog instance
public static initUpdateLog ( string $path ) : Logger
$path string
return Monolog\Logger
 public function testUpdateStream()
 {
     $file = $this->logfiles['update'];
     $this->assertFileNotExists($file);
     TelegramLog::initUpdateLog($file);
     TelegramLog::update('my update');
     $this->assertFileExists($file);
     $this->assertContains('my update', file_get_contents($file));
 }