liukaho / logger-azure
send your log to azure account storeage
1.0.0
2018-12-28 08:31 UTC
Requires
- microsoft/azure-storage-queue: ^1.1
- monolog/monolog: ^1.24
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.php
的 channel
中添加下面代码:
'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 需要传这个 ], ],
修改.env
中LOG_CHANNEL = azure
即可使用
License
MIT