Skip to content

blue32a/monolog-azure-blob

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

monolog-azure-blob

Test

About

Azure Blob Storage Handler for Monolog.

Installation

$ composer require blue32a/monolog-azure-blob

Usage

Append Blob must be created.

$connection = 'DefaultEndpointsProtocol=https;AccountName=<name>;AccountKey=<key>';
$client = \MicrosoftAzure\Storage\Blob\BlobRestProxy::createBlobService($connection);

$logger = new \Monolog\Logger();

$handler = \Blue32a\Monolog\Handler\AzureBlobStorageHandler($client, 'container', 'append-blob.log');
$logger->pushHandler($handler);

// Write to Append Blob
$logger->info('Hello World!');

About

Azure Blob Storage Handler for Monolog

Topics

Resources

License

Stars

Watchers

Forks

Languages