getName(), [ new LogDirectoryHandler( $this->getLogMainDirectory() . DIRECTORY_SEPARATOR . str_replace(':', DIRECTORY_SEPARATOR, $command->getName()) ), ] ) ); } /** * The main log directory for Monolog: on subdirectory by command * * @return string The main log directory for Monolog: on subdirectory by command */ public function getLogMainDirectory (): string { return $this->logMainDirectory; } /** * Set the main log directory for Monolog: on subdirectory by command * * @param string $logMainDirectory The main log directory for Monolog: on subdirectory by command * * @return $this */ public function setLogMainDirectory (string $logMainDirectory): self { $this->logMainDirectory = $logMainDirectory; return $this; } }