{"id":15932192,"url":"https://github.com/austintgriffith/logger","last_synced_at":"2025-09-10T10:36:57.127Z","repository":{"id":78713926,"uuid":"54205136","full_name":"austintgriffith/logger","owner":"austintgriffith","description":null,"archived":false,"fork":false,"pushed_at":"2016-12-02T14:54:03.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-14T03:05:26.439Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/austintgriffith.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}},"created_at":"2016-03-18T13:56:02.000Z","updated_at":"2016-03-18T16:02:51.000Z","dependencies_parsed_at":"2023-04-23T13:17:29.635Z","dependency_job_id":null,"html_url":"https://github.com/austintgriffith/logger","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/austintgriffith/logger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/austintgriffith%2Flogger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/austintgriffith%2Flogger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/austintgriffith%2Flogger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/austintgriffith%2Flogger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/austintgriffith","download_url":"https://codeload.github.com/austintgriffith/logger/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/austintgriffith%2Flogger/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274447561,"owners_count":25287114,"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","status":"online","status_checked_at":"2025-09-10T02:00:12.551Z","response_time":83,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-10-07T01:42:11.047Z","updated_at":"2025-09-10T10:36:57.104Z","avatar_url":"https://github.com/austintgriffith.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# logger\n\nPOST a JSON object to /:yournamespace\n\n![alt tag](https://s3.amazonaws.com/madshot/ad2b82bb527f25e03f90c7bd1a5f7719.png)\n\nGET /:yournamespace/[:numberoflines] to read logs\n\n![alt tag](https://s3.amazonaws.com/madshot/d741a0e413c6c61b7c6a89427f4dda83.png)\n\n\n\nExample PHP Code:\n```php\n$ch = curl_init();curl_setopt($ch, CURLOPT_URL,\"logger.madwire.net/###NAMESPACE###\");curl_setopt($ch, CURLOPT_POST, 1);\ncurl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 2000);curl_setopt($ch, CURLOPT_TIMEOUT, 3000);curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\ncurl_setopt($ch, CURLOPT_POSTFIELDS,\"###somekey###=###somevalue###\");$result=curl_exec($ch);curl_close($ch);\n```\n\nExample Node Code:\n```javascript\nfunction logger(namespace,object){\n    var http = require(\"http\");\n    var options = {\n      hostname: 'logger.madwire.net',\n      port: 80,\n      path: '/'+namespace,\n      method: 'POST',\n      headers: {\n          'Content-Type': 'application/json',\n      }\n    };\n    var req = http.request(options, function(res) {\n      //console.log('Status: ' + res.statusCode);\n      //console.log('Headers: ' + JSON.stringify(res.headers));\n      res.setEncoding('utf8');\n      res.on('data', function (body) {\n        //console.log('Body: ' + body);\n      });\n    });\n    req.on('error', function(e) {\n      console.log('problem with request: ' + e.message);\n    });\n    // write data to request body\n    req.write(JSON.stringify(object));\n    req.end();\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faustintgriffith%2Flogger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faustintgriffith%2Flogger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faustintgriffith%2Flogger/lists"}