{"id":19533653,"url":"https://github.com/oliwierptak/everon-logger-gelf","last_synced_at":"2026-07-27T06:30:15.771Z","repository":{"id":62503183,"uuid":"317161987","full_name":"oliwierptak/everon-logger-gelf","owner":"oliwierptak","description":"Logger plugins with Gelf/Graylog handler for EveronLogger","archived":false,"fork":false,"pushed_at":"2023-08-04T20:12:28.000Z","size":178,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-08T17:25:02.945Z","etag":null,"topics":["gelf","gelf-php","logger","monolog","plugins","semantic-versioning"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oliwierptak.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-11-30T08:46:14.000Z","updated_at":"2023-08-04T19:51:47.000Z","dependencies_parsed_at":"2022-11-02T12:30:25.019Z","dependency_job_id":null,"html_url":"https://github.com/oliwierptak/everon-logger-gelf","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oliwierptak%2Feveron-logger-gelf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oliwierptak%2Feveron-logger-gelf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oliwierptak%2Feveron-logger-gelf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oliwierptak%2Feveron-logger-gelf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oliwierptak","download_url":"https://codeload.github.com/oliwierptak/everon-logger-gelf/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240788778,"owners_count":19857695,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gelf","gelf-php","logger","monolog","plugins","semantic-versioning"],"created_at":"2024-11-11T02:09:02.939Z","updated_at":"2026-07-27T06:30:15.716Z","avatar_url":"https://github.com/oliwierptak.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# EveronLoggerGelf\n\n[![Build and run tests](https://github.com/oliwierptak/everon-logger-gelf/actions/workflows/main.yml/badge.svg)](https://github.com/oliwierptak/everon-logger-gelf/actions/workflows/main.yml)\n\nA plugin with [Graylog2](https://github.com/bzikarsky/gelf-php) handler\nfor [EveronLogger](https://github.com/oliwierptak/everon-logger).\n\n- GelfHttp\n- GelfTcp\n- GelfUdp\n\n_Note:_ Gelf offers several transport protocols, and could be configured via related properties\nof `GelfLoggerPluginConfigurator`.\n\n## Plugins\n\n### GelfHttp\n\n- Configurator\n\n  `Everon\\Shared\\LoggerGelf\\Configurator\\Plugin\\GelfHttpLoggerPluginConfigurator`\n\n- Default Options\n\n    ```php\n    'pluginClass' =\u003e \\Everon\\LoggerGelf\\Plugin\\GelfHttp\\GelfHttpLoggerPlugin::class,\n    'pluginFactoryClass' =\u003e NULL,\n    'logLevel' =\u003e \\Monolog\\Level::Debug,\n    'shouldBubble' =\u003e true,\n    'ignoreTransportErrors' =\u003e true,\n    'host' =\u003e '127.0.0.1',\n    'port' =\u003e 12202,\n    'path' =\u003e '/gelf',\n    'sslOptions' =\u003e NULL,\n    ```\n\n- Plugin\n\n  `Everon\\LoggerGelf\\Plugin\\GelfHttp\\GelfHttpLoggerPlugin`\n\n### GelfTcp\n\n- Configurator\n\n  `Everon\\Shared\\LoggerGelf\\Configurator\\Plugin\\GelfTcpLoggerPluginConfigurator`\n\n- Default Options\n\n    ```php\n    'pluginClass' =\u003e \\Everon\\LoggerGelf\\Plugin\\GelfTcp\\GelfTcpLoggerPlugin::class,\n    'pluginFactoryClass' =\u003e NULL,\n    'logLevel' =\u003e \\Monolog\\Level::Debug,\n    'shouldBubble' =\u003e true,\n    'ignoreTransportErrors' =\u003e true,\n    'host' =\u003e '127.0.0.1',\n    'port' =\u003e 12201,\n    'sslOptions' =\u003e NULL,\n    ```\n\n- Plugin\n\n  `Everon\\LoggerGelf\\Plugin\\GelfTcp\\GelfTcpLoggerPlugin`\n\n### GelfUdp\n\n- Configurator\n\n  `Everon\\Shared\\LoggerGelf\\Configurator\\Plugin\\GelfUdpLoggerPluginConfigurator`\n\n- Default Options for `GelfUdpLoggerPluginConfigurator`\n\n    ```php\n    'pluginClass' =\u003e \\Everon\\LoggerGelf\\Plugin\\GelfUdp\\GelfUdpLoggerPlugin::class,\n    'pluginFactoryClass' =\u003e NULL,\n    'logLevel' =\u003e \\Monolog\\Level::Debug,\n    'shouldBubble' =\u003e true,\n    'ignoreTransportErrors' =\u003e true,\n    'host' =\u003e '127.0.0.1',\n    'port' =\u003e 12201,\n    'chunkSize' =\u003e \\Gelf\\Transport\\UdpTransport::CHUNK_SIZE_WAN,\n    ```\n\n- Plugin\n\n  `Everon\\LoggerGelf\\Plugin\\GelfUdp\\GelfUdpLoggerPlugin`\n\n### Gelf SSL Options\n\n- Default Options for `GelfLoggerPluginSslOptions`\n\n    ```php\n    'verifyPeer' =\u003e true,\n    'allowSelfSigned' =\u003e false,\n    'caFile' =\u003e NULL,\n    'ciphers' =\u003e NULL,\n    'useSsl' =\u003e false,\n    ```\n\n- Usage\n\n    ```php\n    use Everon\\Shared\\Logger\\Configurator\\Plugin\\LoggerConfigurator;\n    use Everon\\Logger\\EveronLoggerFacade;\n    use Everon\\Shared\\LoggerGelf\\Configurator\\Plugin\\GelfHttpLoggerPluginConfigurator;\n    use Everon\\Shared\\LoggerGelf\\Configurator\\Plugin\\GelfTcpLoggerPluginConfigurator;\n    use Everon\\Shared\\LoggerGelf\\Configurator\\Plugin\\GelfUdpLoggerPluginConfigurator;\n    use Monolog\\Level;\n  \n    $gelfHttpPluginConfigurator = (new GelfHttpLoggerPluginConfigurator)\n        -\u003esetLogLevel(Level::Debug)\n        -\u003esetHost('graylog.host.http');\n  \n    $gelfTcpPluginConfigurator = (new GelfTcpLoggerPluginConfigurator)\n        -\u003esetLogLevel(Level::Warning)\n        -\u003esetHost('graylog.host.tcp');\n  \n    $gelfUdpPluginConfigurator = (new GelfUdpLoggerPluginConfigurator)\n        -\u003esetLogLevel(Level::Info)\n        -\u003esetHost('graylog.host.udp');\n    \n    $configurator = (new LoggerConfigurator)\n        -\u003eaddPluginConfigurator($gelfHttpPluginConfigurator)\n        -\u003eaddPluginConfigurator($gelfTcpPluginConfigurator)\n        -\u003eaddPluginConfigurator($gelfUdpPluginConfigurator);\n    \n    $logger = (new EveronLoggerFacade())-\u003ebuildLogger($configurator);\n    \n    $logger-\u003einfo('lorem ipsum');\n    ```\n\n## Requirements\n\n- PHP v8.1.x\n- Monolog v3.x\n\n## Installation\n\n```\ncomposer require everon/logger-gelf\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foliwierptak%2Feveron-logger-gelf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foliwierptak%2Feveron-logger-gelf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foliwierptak%2Feveron-logger-gelf/lists"}