PHP code example of uga / php4logger-bundle

1. Go to this page and download the library: Download uga/php4logger-bundle library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

uga / php4logger-bundle example snippets


new uga\Php4LoggerApacheBundle\ugaPhp4LoggerApacheBundle(),

        $em = $this->getDoctrine()->getEntityManager() ;  // Object 
        $logger = $this->container->get('uga_php4_logger_apache')->getLogger() ; 
        $logger->info($em); // info
        $logger->error($em); // error
        $logger->warn($em); // warning
        }