use Symfony\Component\Console\Output\OutputInterface; $output = new ConsoleOutput(); $verbosity = $output->getVerbosity(); switch ($verbosity) { case OutputInterface::VERBOSITY_QUIET: // Do not output any message break; case OutputInterface::VERBOSITY_NORMAL: // Output messages normally break; case OutputInterface::VERBOSITY_VERBOSE: // Increase the verbosity of messages break; case OutputInterface::VERBOSITY_VERY_VERBOSE: // Increase the verbosity of messages significantly break; case OutputInterface::VERBOSITY_DEBUG: // Output messages with debugging information break; }This example shows how to get the current verbosity level of the output and use it to control the behavior of the application. The Symfony\Component\Console package is the library to which the Symfony\Component\Console\Output\OutputInterface class belongs.