Skip to content

Commit

Permalink
Merge pull request #71 from kronostechnologies/dev/LIBS-149
Browse files Browse the repository at this point in the history
LIBS-149: Retirer Graylog qui ne sert plus
  • Loading branch information
GTony authored Sep 8, 2022
2 parents 47487c0 + 2f9f8ba commit d8855a4
Show file tree
Hide file tree
Showing 11 changed files with 3 additions and 679 deletions.
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

0 comments on commit d8855a4

Please sign in to comment.