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

LIBS-149: Retirer Graylog qui ne sert plus #71

Merged
merged 2 commits into from
Sep 8, 2022
Merged
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
2 changes: 0 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,11 @@
"suggest": {
"guzzlehttp/guzzle": "Required for LogDNA writer",
"sentry/sentry": "Required for Sentry writer",
"graylog2/gelf-php": "Required for Graylog writer",
"fluent/logger": "Required for Fluentd writer"
},
"require-dev": {
"guzzlehttp/guzzle": "6.5.8",
"sentry/sentry": "3.7.0",
"graylog2/gelf-php": "1.7.1",
"fluent/logger": "1.0.1",
"phpunit/phpunit": "9.5.24",
"vimeo/psalm": "4.26.0",
Expand Down
58 changes: 0 additions & 58 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion qodana.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
version: "1.0"
linter: jetbrains/qodana-php:2022.1-eap
linter: jetbrains/qodana-php:2022.2-eap

script:
name: php-migration
Expand Down
63 changes: 0 additions & 63 deletions src/Builder/Strategy/Graylog.php

This file was deleted.

2 changes: 0 additions & 2 deletions src/Builder/Strategy/Selector.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ public function getStrategyForType($type)
return $this->factory->createConsoleStrategy();
case WriterTypes::FILE:
return $this->factory->createFileStrategy();
case WriterTypes::GRAYLOG:
return $this->factory->createGraylogStrategy();
case WriterTypes::FLUENTD:
return $this->factory->createFluentdStrategy();
case WriterTypes::LOGDNA:
Expand Down
3 changes: 1 addition & 2 deletions src/Enumeration/WriterTypes.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,10 @@ class WriterTypes extends Enumeration
{
const CONSOLE = 'console';
const FILE = 'file';
const GRAYLOG = 'graylog';
const FLUENTD = 'fluentd';
const LOGDNA = 'logdna';
const MEMORY = 'memory';
const SENTRY = 'sentry';
const SYSLOG = 'syslog';
const TRIGGER_ERROR = 'trigger_error';
}
}
45 changes: 0 additions & 45 deletions src/Factory/Graylog.php

This file was deleted.

11 changes: 1 addition & 10 deletions src/Factory/Strategy.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
use Kronos\Log\Builder\Strategy\Console;
use Kronos\Log\Builder\Strategy\CustomWriter;
use Kronos\Log\Builder\Strategy\File;
use Kronos\Log\Builder\Strategy\Graylog as GraylogStrategy;
use Kronos\Log\Builder\Strategy\Fluentd as FluentdStrategy;
use Kronos\Log\Builder\Strategy\LogDNA;
use Kronos\Log\Builder\Strategy\Memory;
Expand All @@ -32,14 +31,6 @@ public function createFileStrategy()
return new File();
}

/**
* @return GraylogStrategy
*/
public function createGraylogStrategy()
{
return new GraylogStrategy();
}

/**
* @return FluentdStrategy
*/
Expand Down Expand Up @@ -95,4 +86,4 @@ public function createCustomWriterStrategy()
{
return new CustomWriter();
}
}
}
Loading