{"id":19591351,"url":"https://github.com/taoso/udplog","last_synced_at":"2025-04-27T13:32:07.170Z","repository":{"id":62520619,"uuid":"84978816","full_name":"taoso/udplog","owner":"taoso","description":"syslog udp client for php","archived":false,"fork":false,"pushed_at":"2017-03-15T03:35:25.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-05T00:41:16.456Z","etag":null,"topics":["logging","php","psr-3","rfc5324","syslog","udp"],"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/taoso.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":"2017-03-14T17:36:49.000Z","updated_at":"2019-12-30T22:47:06.000Z","dependencies_parsed_at":"2022-11-02T14:00:29.828Z","dependency_job_id":null,"html_url":"https://github.com/taoso/udplog","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taoso%2Fudplog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taoso%2Fudplog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taoso%2Fudplog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taoso%2Fudplog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/taoso","download_url":"https://codeload.github.com/taoso/udplog/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251145587,"owners_count":21543070,"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":["logging","php","psr-3","rfc5324","syslog","udp"],"created_at":"2024-11-11T08:28:39.991Z","updated_at":"2025-04-27T13:32:06.744Z","avatar_url":"https://github.com/taoso.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# udplog\n\n`lvht/udplog` is a [PSR3](http://www.php-fig.org/psr/psr-3/) implementation,\nwhich sending log according [RFC 5424](https://tools.ietf.org/html/rfc5424).\n\n## Install\n\n\tcomposer require lvht/udplog\n\n## Usage\n\n```php\n\u003c?php\n$log = new Lvht\\Udplog('ip addr', 'port');\n$log-\u003efacility(LOG_KERN)\n    -\u003ehostname('foo.com')\n    -\u003eprocid(8848)\n    -\u003emsgid('demo')\n    -\u003eappname('php');\n\n$log-\u003eerror('欢迎使用基于UDP的syslog协议发送日志！');\n$log-\u003einfo('欢迎使用基于UDP的syslog协议发送日志！');\n$log-\u003edebug('欢迎使用基于UDP的syslog协议发送日志！');\n$log-\u003eemergency('欢迎使用基于UDP的syslog协议发送日志！');\n```\n\n## Status\nduplog implements PSR3, so the API is stable. And I want to make it v1.0.0.\nHowever, duplog does not support the [STRUCTURED-DATA](https://tools.ietf.org/html/rfc5424#section-6.3).\nWe will add this support in the future if needed.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaoso%2Fudplog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftaoso%2Fudplog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaoso%2Fudplog/lists"}