pushHandler($handler); // You can now use your logger $logger->info('My logger is now ready');