Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when entering log #1

Open
marcelodevcriare opened this issue Mar 4, 2022 · 0 comments
Open

Error when entering log #1

marcelodevcriare opened this issue Mar 4, 2022 · 0 comments

Comments

@marcelodevcriare
Copy link

marcelodevcriare commented Mar 4, 2022

Hi,
Please, my code is return :

2022-03-04T16:30:28.114 [Error] [Fri Mar 4 16:30:28 2022] PHP Fatal error: Declaration of Huhushow\AzureTableStorageHandler\AzureTableStorageHandler::write(array $record) must be compatible with Monolog\Handler\AbstractProcessingHandler::write(array $record): void in C:\home\site\wwwroot\vendor\huhushow\monolog-azuretable\src\AzureTableStorageHandler.php on line 54

How should I use this package?
my code :

use Monolog\Logger;
use Huhushow\AzureTableStorageHandler\AzureTableStorageHandler ;


$connectionString = "DefaultEndpointsProtocol=https;
                                   AccountName=MyAccountName;
                                   AccountKey=MyAccountKey;
                                 TableEndpoint = https://myaccountname.table.core.windows.net/mytable";

 $handle =  new AzureTableStorageHandler($connectionString, 'mytable', Logger::DEBUG); 
 $logger->pushHandler($handle);        
 $logger->info("my message log");`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant