liukaho/logger-azure

send your log to azure account storeage

1.0.0 2018-12-28 08:31 UTC

This package is auto-updated.

Last update: 2024-11-29 00:32:06 UTC


README

send your log to azure account storeage.

Installing

$ composer require liukaho/logger-azure -vvv

Usage

config/logging.phpchannel 中添加下面代码:

'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 需要传这个
    ],
],

修改.envLOG_CHANNEL = azure即可使用

License

MIT