code: public function install(ApplicationInterface $app)
      {
          try{
              $logger = new PsrLoggerAdapter(new EchoLogger);
              $app->logger($logger);
  
              // fire event
              $app->eventstream()->channel(Channels::SYSTEM)->push(Events::LOGGER_ATTACHED, $logger);
          }
          catch(\Throwable $e)
          {
              throw new ModuleInstallationException(self::class, $e->getMessage(), $e);
          }
      }
docs: Install module
  
  @param ApplicationInterface $app
  
  @throws ModuleInstallationException