function(): string { return 'woocommerce-paypal-payments'; }, 'woocommerce.logger.woocommerce' => function ( ContainerInterface $container ): LoggerInterface { if ( ! class_exists( \WC_Logger::class ) ) { return new NullLogger(); } $source = $container->get( 'woocommerce.logger.source' ); return new WooCommerceLogger( wc_get_logger(), $source ); }, );