2017 © Pedro Peláez
 

library monolog-azuretable

A handler for Monolog that sends messages to Azure Table Stotage

image

huhushow/monolog-azuretable

A handler for Monolog that sends messages to Azure Table Stotage

  • Monday, June 20, 2016
  • by huhushow
  • Repository
  • 1 Watchers
  • 0 Stars
  • 107 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 2 % Grown

The README.md

monolog-azuretable

Azure Table Storage Handler for Monolog, which allows to store log messages in a Azure Table Storage., (*1)

Installation

monolog-azuretable is available via composer. Just add the following line to your required section in composer.json and do a php composer.phar update., (*2)

"huhushow/monolog-azuretable": ">1.0.0"

Usage

Just use it as any other Monolog Handler, push it to the stack of your Monolog Logger instance. The Handler however needs some parameters:, (*3)

  • $client TableRestProxy Instance of your Azure Storage account.
  • $table The table name where the logs should be stored
  • $level can be any of the standard Monolog logging levels. Use Monologs statically defined contexts. Defaults to Logger::DEBUG
  • $bubble Defaults to true

Examples

Given that $client is your TableRestProxy instance, you could use the class as follows:, (*4)

//Import class
use AzureTableStorageHandler\AzureTableStorageHandler;

//Create AzureTableStorageHandler
$AzureTableStorageHandler = new AzureTableStorageHandler($client, "log", \Monolog\Logger::DEBUG);

//Create logger
$logger = new \Monolog\Logger($context);
$logger->pushHandler($AzureTableStorageHandler);

//Now you can use the logger, and further attach additional information

License

This tool is free software and is distributed under the MIT license. Please have a look at the LICENSE file for further information., (*5)

The Versions

20/06 2016

dev-master

9999999-dev https://github.com/huhushow/monolog-azuretable

A handler for Monolog that sends messages to Azure Table Stotage

  Sources   Download

MIT

The Requires

 

The Development Requires

by Hyungbum Park

log logging monolog azure

20/06 2016

1.0.2

1.0.2.0 https://github.com/huhushow/monolog-azuretable

A handler for Monolog that sends messages to Azure Table Stotage

  Sources   Download

MIT

The Requires

 

The Development Requires

by Hyungbum Park

log logging monolog azure

24/03 2016

1.0.1

1.0.1.0 https://github.com/huhushow/monolog-azuretable

A handler for Monolog that sends messages to Azure Table Stotage

  Sources   Download

MIT

The Requires

 

by Hyungbum Park

log logging monolog azure

24/03 2016

1.0.0

1.0.0.0 https://github.com/huhushow/monolog-azuretable

A handler for Monolog that sends messages to Azure Table Stotage

  Sources   Download

MIT

The Requires

 

by Hyungbum Park

log logging monolog azure