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

Include support for latest version of monolog PHP library #31

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .phpunit.result.cache
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
C:37:"PHPUnit\Runner\DefaultTestResultCache":8654:{a:2:{s:7:"defects";a:45:{s:58:"Graze\Monolog\Handler\DynamoDbEventHandlerTest::testHandle";i:4;s:54:"Graze\Monolog\Handler\RaygunHandlerTest::testConstruct";i:3;s:54:"Graze\Monolog\Handler\RaygunHandlerTest::testInterface";i:3;s:57:"Graze\Monolog\Handler\RaygunHandlerTest::testGetFormatter";i:3;s:56:"Graze\Monolog\Handler\RaygunHandlerTest::testHandleError";i:3;s:60:"Graze\Monolog\Handler\RaygunHandlerTest::testHandleException";i:3;s:67:"Graze\Monolog\Handler\RaygunHandlerTest::testHandleEmptyDoesNothing";i:3;s:60:"Graze\Monolog\Handler\RaygunHandlerTest::testHandleThrowable";i:5;s:56:"Graze\Monolog\Handler\SnsEventHandlerTest::testConstruct";i:3;s:56:"Graze\Monolog\Handler\SnsEventHandlerTest::testInterface";i:3;s:59:"Graze\Monolog\Handler\SnsEventHandlerTest::testGetFormatter";i:3;s:57:"Graze\Monolog\Handler\SnsEventHandlerTest::testIsHandling";i:3;s:53:"Graze\Monolog\Handler\SnsEventHandlerTest::testHandle";i:4;s:54:"Graze\Monolog\Handler\WhoopsHandlerTest::testConstruct";i:3;s:54:"Graze\Monolog\Handler\WhoopsHandlerTest::testInterface";i:3;s:56:"Graze\Monolog\Handler\WhoopsHandlerTest::testHandleError";i:5;s:60:"Graze\Monolog\Handler\WhoopsHandlerTest::testHandleException";i:5;s:60:"Graze\Monolog\Handler\WhoopsHandlerTest::testHandleThrowable";i:5;s:107:"Graze\Monolog\Handler\WhoopsHandlerTest::testContextWithNotEnoughInformationDoesNotTrigger with data set #0";i:5;s:107:"Graze\Monolog\Handler\WhoopsHandlerTest::testContextWithNotEnoughInformationDoesNotTrigger with data set #1";i:5;s:107:"Graze\Monolog\Handler\WhoopsHandlerTest::testContextWithNotEnoughInformationDoesNotTrigger with data set #2";i:5;s:107:"Graze\Monolog\Handler\WhoopsHandlerTest::testContextWithNotEnoughInformationDoesNotTrigger with data set #3";i:5;s:44:"Graze\Monolog\LoggerBuilderTest::testGetName";i:3;s:44:"Graze\Monolog\LoggerBuilderTest::testSetName";i:3;s:47:"Graze\Monolog\LoggerBuilderTest::testAddHandler";i:3;s:48:"Graze\Monolog\LoggerBuilderTest::testGetHandlers";i:3;s:48:"Graze\Monolog\LoggerBuilderTest::testSetHandlers";i:3;s:49:"Graze\Monolog\LoggerBuilderTest::testAddProcessor";i:3;s:50:"Graze\Monolog\LoggerBuilderTest::testGetProcessors";i:3;s:50:"Graze\Monolog\LoggerBuilderTest::testSetProcessors";i:3;s:74:"Graze\Monolog\Processor\DynamoDbSecondaryIndexProcessorTest::testConstruct";i:4;s:74:"Graze\Monolog\Processor\DynamoDbSecondaryIndexProcessorTest::testProcessor";i:4;s:85:"Graze\Monolog\Processor\DynamoDbSecondaryIndexProcessorTest::testProcessorNoOverwrite";i:4;s:58:"Graze\Monolog\Processor\FilterProcessorTest::testConstruct";i:3;s:58:"Graze\Monolog\Processor\FilterProcessorTest::testProcessor";i:3;s:71:"Graze\Monolog\Processor\FilterProcessorTest::testProcessorIgnoresArrays";i:3;s:87:"Graze\Monolog\Processor\FilterProcessorTest::testProcessorWorksWithNullReplacementValue";i:3;s:70:"Graze\Monolog\ErrorHandlerBuilderIntegrationTest::testBuildAndRegister";i:1;s:88:"Graze\Monolog\Handler\RaygunHandlerIntegrationTest::testErrorWithExceptionTriggersLogger";i:4;s:87:"Graze\Monolog\Handler\RaygunHandlerIntegrationTest::testErrorWithErrorWillTriggerLogger";i:4;s:84:"Graze\Monolog\Handler\RaygunHandlerIntegrationTest::testErrorWithNoLineWillDoNothing";i:4;s:84:"Graze\Monolog\Handler\RaygunHandlerIntegrationTest::testErrorWithNoFileWillDoNothing";i:4;s:85:"Graze\Monolog\Handler\RaygunHandlerIntegrationTest::testErrorWithNeitherWillDoNothing";i:4;s:53:"Graze\Monolog\LoggerBuilderIntegrationTest::testBuild";i:3;s:59:"Graze\Monolog\ErrorHandlerBuilderIntegrationTest::testBuild";i:1;}s:5:"times";a:67:{s:59:"Graze\Monolog\ErrorHandlerBuilderTest::testGetErrorLevelMap";d:0.051;s:59:"Graze\Monolog\ErrorHandlerBuilderTest::testSetErrorLevelMap";d:0;s:60:"Graze\Monolog\ErrorHandlerBuilderTest::testGetExceptionLevel";d:0;s:60:"Graze\Monolog\ErrorHandlerBuilderTest::testSetExceptionLevel";d:0;s:56:"Graze\Monolog\ErrorHandlerBuilderTest::testGetFatalLevel";d:0.005;s:56:"Graze\Monolog\ErrorHandlerBuilderTest::testSetFatalLevel";d:0;s:38:"Graze\Monolog\EventTest::testConstruct";d:0.006;s:39:"Graze\Monolog\EventTest::testIdentifier";d:0.195;s:33:"Graze\Monolog\EventTest::testData";d:0.001;s:37:"Graze\Monolog\EventTest::testMetadata";d:0;s:36:"Graze\Monolog\EventTest::testPublish";d:0.003;s:50:"Graze\Monolog\EventTest::testPublishFalseNoHandler";d:0.003;s:45:"Graze\Monolog\EventTest::testMultipleHandlers";d:0.001;s:79:"Graze\Monolog\Formatter\JsonDateAwareFormatterTest::testFormat with data set #0";d:0.014;s:79:"Graze\Monolog\Formatter\JsonDateAwareFormatterTest::testFormat with data set #1";d:0;s:67:"Graze\Monolog\Formatter\JsonDateAwareFormatterTest::testFormatBatch";d:0;s:55:"Graze\Monolog\Formatter\RaygunFormatterTest::testFormat";d:0.003;s:64:"Graze\Monolog\Formatter\RaygunFormatterTest::testFormatException";d:0.001;s:61:"Graze\Monolog\Handler\DynamoDbEventHandlerTest::testConstruct";d:0.052;s:61:"Graze\Monolog\Handler\DynamoDbEventHandlerTest::testInterface";d:0.001;s:64:"Graze\Monolog\Handler\DynamoDbEventHandlerTest::testGetFormatter";d:0.003;s:62:"Graze\Monolog\Handler\DynamoDbEventHandlerTest::testIsHandling";d:0.003;s:58:"Graze\Monolog\Handler\DynamoDbEventHandlerTest::testHandle";d:0.009;s:54:"Graze\Monolog\Handler\RaygunHandlerTest::testConstruct";d:0.172;s:54:"Graze\Monolog\Handler\RaygunHandlerTest::testInterface";d:0;s:57:"Graze\Monolog\Handler\RaygunHandlerTest::testGetFormatter";d:0;s:56:"Graze\Monolog\Handler\RaygunHandlerTest::testHandleError";d:0.033;s:60:"Graze\Monolog\Handler\RaygunHandlerTest::testHandleException";d:0;s:67:"Graze\Monolog\Handler\RaygunHandlerTest::testHandleEmptyDoesNothing";d:0;s:60:"Graze\Monolog\Handler\RaygunHandlerTest::testHandleThrowable";d:0;s:56:"Graze\Monolog\Handler\SnsEventHandlerTest::testConstruct";d:0.009;s:56:"Graze\Monolog\Handler\SnsEventHandlerTest::testInterface";d:0;s:59:"Graze\Monolog\Handler\SnsEventHandlerTest::testGetFormatter";d:0;s:57:"Graze\Monolog\Handler\SnsEventHandlerTest::testIsHandling";d:0;s:53:"Graze\Monolog\Handler\SnsEventHandlerTest::testHandle";d:0;s:54:"Graze\Monolog\Handler\WhoopsHandlerTest::testConstruct";d:0.011;s:54:"Graze\Monolog\Handler\WhoopsHandlerTest::testInterface";d:0;s:56:"Graze\Monolog\Handler\WhoopsHandlerTest::testHandleError";d:0.024;s:60:"Graze\Monolog\Handler\WhoopsHandlerTest::testHandleException";d:0;s:60:"Graze\Monolog\Handler\WhoopsHandlerTest::testHandleThrowable";d:0;s:107:"Graze\Monolog\Handler\WhoopsHandlerTest::testContextWithNotEnoughInformationDoesNotTrigger with data set #0";d:0;s:107:"Graze\Monolog\Handler\WhoopsHandlerTest::testContextWithNotEnoughInformationDoesNotTrigger with data set #1";d:0;s:107:"Graze\Monolog\Handler\WhoopsHandlerTest::testContextWithNotEnoughInformationDoesNotTrigger with data set #2";d:0;s:107:"Graze\Monolog\Handler\WhoopsHandlerTest::testContextWithNotEnoughInformationDoesNotTrigger with data set #3";d:0;s:44:"Graze\Monolog\LoggerBuilderTest::testGetName";d:0.004;s:44:"Graze\Monolog\LoggerBuilderTest::testSetName";d:0;s:47:"Graze\Monolog\LoggerBuilderTest::testAddHandler";d:0.003;s:48:"Graze\Monolog\LoggerBuilderTest::testGetHandlers";d:0;s:48:"Graze\Monolog\LoggerBuilderTest::testSetHandlers";d:0;s:49:"Graze\Monolog\LoggerBuilderTest::testAddProcessor";d:0;s:50:"Graze\Monolog\LoggerBuilderTest::testGetProcessors";d:0;s:50:"Graze\Monolog\LoggerBuilderTest::testSetProcessors";d:0;s:74:"Graze\Monolog\Processor\DynamoDbSecondaryIndexProcessorTest::testConstruct";d:0.005;s:74:"Graze\Monolog\Processor\DynamoDbSecondaryIndexProcessorTest::testProcessor";d:0.004;s:85:"Graze\Monolog\Processor\DynamoDbSecondaryIndexProcessorTest::testProcessorNoOverwrite";d:0;s:58:"Graze\Monolog\Processor\FilterProcessorTest::testConstruct";d:0.003;s:58:"Graze\Monolog\Processor\FilterProcessorTest::testProcessor";d:0;s:71:"Graze\Monolog\Processor\FilterProcessorTest::testProcessorIgnoresArrays";d:0.003;s:87:"Graze\Monolog\Processor\FilterProcessorTest::testProcessorWorksWithNullReplacementValue";d:0;s:59:"Graze\Monolog\ErrorHandlerBuilderIntegrationTest::testBuild";d:0.054;s:70:"Graze\Monolog\ErrorHandlerBuilderIntegrationTest::testBuildAndRegister";d:0;s:88:"Graze\Monolog\Handler\RaygunHandlerIntegrationTest::testErrorWithExceptionTriggersLogger";d:0.148;s:87:"Graze\Monolog\Handler\RaygunHandlerIntegrationTest::testErrorWithErrorWillTriggerLogger";d:0;s:84:"Graze\Monolog\Handler\RaygunHandlerIntegrationTest::testErrorWithNoLineWillDoNothing";d:0.006;s:84:"Graze\Monolog\Handler\RaygunHandlerIntegrationTest::testErrorWithNoFileWillDoNothing";d:0;s:85:"Graze\Monolog\Handler\RaygunHandlerIntegrationTest::testErrorWithNeitherWillDoNothing";d:0;s:53:"Graze\Monolog\LoggerBuilderIntegrationTest::testBuild";d:0.019;}}}
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
SHELL = /bin/sh

DOCKER ?= $(shell which docker)
PHP_VER := 7.2
PHP_VER := 7.3
IMAGE := graze/php-alpine:${PHP_VER}-test
VOLUME := /srv
DOCKER_RUN_BASE := ${DOCKER} run --rm -t -v $$(pwd):${VOLUME} -w ${VOLUME}
Expand Down
13 changes: 7 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,19 @@
}
},
"require": {
"monolog/monolog": "^1.7"
"monolog/monolog": "^2.0"
},
"require-dev": {
"adlawson/timezone": "^1.0",
"aws/aws-sdk-php": "^2.4.9|^3.0",
"filp/whoops": "^2.0",
"mindscape/raygun4php": "^1.0",
"mockery/mockery": "^0.9",
"phpunit/phpunit": "^4.8.36",
"mindscape/raygun4php": "^2.0",
"mockery/mockery": "^1.0",
"phpunit/phpunit": "^9",
"sebastian/comparator": ">1.2.3",
"squizlabs/php_codesniffer": "^3",
"graze/standards": "^2"
"graze/standards": "^2",
"ext-json": "*"
},
"suggest": {
"aws/aws-sdk-php": "Write records to AWS services like DynamoDb",
Expand All @@ -35,7 +36,7 @@
},
"config": {
"platform": {
"php": "7.2"
"php": "7.3"
}
}
}
Loading