PHP code example of liukaho / logger-azure

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

    

liukaho / logger-azure example snippets


'azure' => [
    'driver'  => 'monolog',
    'level' => 'debug',
    'handler' => Liukaho\LoggerAzure\AzureLogHandler::class,
    'handler_with' => [
        'default_endpoints_protocol' => env('DefaultEndpointsProtocol', 'https'),
        'account_name' => env('AccountName', 'AccountName'),
        'account_key' => env('AccountKey', 'AccountKey'),
        'queue_name' => env('Azure_Storage_QueueName', 'Azure_Storage_QueueName'),
        'queue_endpoint' => env('QueueEndpoint', ''),   //中国区 azure 需要传这个
    ],
],