{"id":30496263,"url":"https://github.com/cyclonecode/udf-logger","last_synced_at":"2026-05-03T23:32:24.866Z","repository":{"id":69134825,"uuid":"435902994","full_name":"Cyclonecode/udf-logger","owner":"Cyclonecode","description":"UDF which sends log messages using curl.","archived":false,"fork":false,"pushed_at":"2021-12-09T13:35:27.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-25T02:26:42.757Z","etag":null,"topics":["c","curl","mysql","udf"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Cyclonecode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-12-07T14:03:29.000Z","updated_at":"2021-12-09T21:21:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"398f6510-ea2c-4268-845e-8b2a9e4b8afd","html_url":"https://github.com/Cyclonecode/udf-logger","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Cyclonecode/udf-logger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cyclonecode%2Fudf-logger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cyclonecode%2Fudf-logger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cyclonecode%2Fudf-logger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cyclonecode%2Fudf-logger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Cyclonecode","download_url":"https://codeload.github.com/Cyclonecode/udf-logger/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cyclonecode%2Fudf-logger/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32589120,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T22:12:39.696Z","status":"ssl_error","status_checked_at":"2026-05-03T22:09:10.534Z","response_time":103,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["c","curl","mysql","udf"],"created_at":"2025-08-25T01:24:32.244Z","updated_at":"2026-05-03T23:32:24.860Z","avatar_url":"https://github.com/Cyclonecode.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# UDF Logger\n\nSample UDF which can be used to post messages to an URL.\n\nThe extension is using curl to send messages.\n\n## Requirements\n\nYou need to the development package for curl and mysql installed.\n\n    sudo apt-get update \u0026\u0026 sudo apt-get install -y libmysqlclient-dev libcurl4-openssl-dev\n\n## Installing\n\nWhen the needed headers and libraries are installed, make sure you update the `makefile` with the correct paths before building your shared library:\n\n    make SERVER=http://localhost:8080 INCLUDE=\"-I/usr/include/mysql -I/include/x86_64-linux-gnu/curl\" LDFLAGS=\"-L/usr/lib/x86_64-linux-gnu\"\n\nAfter we have built the shared library we need to copy it into our mysql plugin directory:\n\n    cp logger.so `mysql_config --plugindir`\n\nNow we need to tell mysql about our extension:\n\n    sudo mysql -uroot\n    DROP FUNCTION IF EXISTS udfLog;\n    CREATE FUNCTION udfLog RETURNS STRING SONAME 'logger.so';\n\nAfter this you could start a server running on the same host as your mysql instance and on port 8080.\nYou could of course use anything for this, even just using the built in php webserver:\n\n    php -S localhost:8080\n\nand then say greet it:\n\n    SELECT udfLog(\"Greetings dark night!\");\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcyclonecode%2Fudf-logger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcyclonecode%2Fudf-logger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcyclonecode%2Fudf-logger/lists"}