PHP code example of biganfa / phalconphp-logger-adapters

1. Go to this page and download the library: Download biganfa/phalconphp-logger-adapters 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/ */

    

biganfa / phalconphp-logger-adapters example snippets


//somewhere in services.php

$di->setShared('logger', function() use($config) {

   $logger = new \Phalcon\Logger\Multiple();
   $logger->push(new LogglyAdapter(new LogglyClient()));
   $logger->push(new TelegramAdapter(new TelegramClient()));
}