public static function createLogManger(ContainerInterface $container): LogManager
    {
        $manager = new LogManager($container->get('config'));

        if ($container->has(EventManagerContract::class)) {
            $manager->setEventManager($container->get(EventManagerContract::class));
        }

        return $manager;
    }
public static function createLogManger(ContainerInterface $container): LogManager
    {
        $manager = new LogManager($container->get('config'));

        if ($container->has(EventManagerContract::class)) {
            $manager->setEventManager($container->get(EventManagerContract::class));
        }

        return $manager;
    }
public static function createLogManger ( ContainerInterface $ container ) : LogManager { $ manager = new LogManager ( $ container -> get ( 'config' ) ) ; if ( $ container -> has ( EventManagerContract :: class ) ) { $ manager -> setEventManager ( $ container -> get ( EventManagerContract :: class ) ) ; } return $ manager ; }
Create a log manager instance.

@param \Psr\Container\ContainerInterface $container

@return \Viserio\Component\Log\LogManager
Create a log manager instance .