{"id":36985903,"url":"https://github.com/bloatless/pile","last_synced_at":"2026-01-13T23:03:48.480Z","repository":{"id":61637922,"uuid":"223763608","full_name":"bloatless/pile","owner":"bloatless","description":"Dead simple centralized logging.","archived":false,"fork":false,"pushed_at":"2024-11-22T13:14:41.000Z","size":67,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-22T13:21:56.282Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/bloatless.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-11-24T15:11:49.000Z","updated_at":"2023-01-17T13:41:34.000Z","dependencies_parsed_at":"2024-03-05T08:45:07.617Z","dependency_job_id":null,"html_url":"https://github.com/bloatless/pile","commit_stats":{"total_commits":13,"total_committers":2,"mean_commits":6.5,"dds":"0.46153846153846156","last_synced_commit":"6a5ac162969c281bb8a601ef8594d053ac3304a3"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/bloatless/pile","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bloatless%2Fpile","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bloatless%2Fpile/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bloatless%2Fpile/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bloatless%2Fpile/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bloatless","download_url":"https://codeload.github.com/bloatless/pile/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bloatless%2Fpile/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28403761,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T21:51:37.118Z","status":"ssl_error","status_checked_at":"2026-01-13T21:45:14.585Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":[],"created_at":"2026-01-13T23:03:47.665Z","updated_at":"2026-01-13T23:03:48.475Z","avatar_url":"https://github.com/bloatless.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n    \u003cimg src=\"https://bloatless.org/img/logo.svg\" width=\"60px\" height=\"80px\"\u003e\n\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003ePile\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n    Dead simple centralized logging.\n\u003c/p\u003e\n\n## Installation\n\nTo install Pile just clone this repository to your server:\n\n```\ngit clone https://github.com/bloatless/pile.git\n```\n\n* Point your virtual host document root to the `public` directory and rewrite ald requests to the `index.php` file.\n* Create a new MySQL database and import the structure using the `db_stucture.sql` file.\n* Copy `config/config.sample.php` to `config/config.php` and adjust database configuration, api-keys and user-account settings.\n\n## Documentation\n\n### Log message structure\n\nThe general structure of a log message to be send to the Pile API should be as follows:\n\nkey        | type                      | description\n-----------|---------------------------|--------------------------------------------------------------------------------\nsource¹    | string                    | An identifier describing the source of the log message. (e.g. the project name)\nmessage¹   | string                    | The actual log message.\nlevel¹     | int                       | A valid log level code. (See listing below)\ncontext    | array                     | Arbitrary data passed together with the log message.\nchannel    | string                    | The channel this message was logged to.\ndatetime   | string                    | Date and time when the message was logged. (Format: YYYY-MM-DD HH:ii:ss)\nextra      | array                     | Additional data added by the processor.\n\n¹ = field is required\n\n#### Log levels\n\nValid log level codes are:\n\ncode  | level name\n------|-----------\n100   | debug\n200   | info\n250   | notice\n300   | warning\n400   | error\n500   | critical\n550   | alert\n600   | emergency\n\n### Sending logs to your Pile instance\n\n#### Using HTTP REST API\n\nLog messages can be sent to your Pile instance using a simple post request:\n\n```\nPOST https://pile.yourdomain.com/api/v1/log\nContent-Type: application/vnd.api+json\nAccept: application/vnd.api+json\nX-API-Key: 123123123\n\n{\n    \"data\": {\n        \"type\": \"log\",\n        \"attributes\": {\n            \"source\": \"MyProjectName\",\n            \"message\": \"Some error occoured\",\n            \"context\": {\n                \"exception\": {\n                    \"class\": \"My\\\\Fancy\\\\Classname\",\n                    \"message\": \"Invalid value\",\n                    \"code\": \"42\",\n                    \"file\": \"\\/framework\\/src\\/Foo\\/Bar\\/Classname.php:1337\"\n                }\n            },\n            \"level\": 400,\n            \"level_name\": \"ERROR\",\n            \"channel\": \"dev\",\n            \"datetime\": \"2019-11-05 17:44:26\",\n            \"extra\": []\n        }\n    }\n} \n```\n\nBe sure to include an API key within the request header.\n\n#### Using Monolog Handler\n\nIf you are using [Monolog](http://github.com/Seldaek/monolog) in your project you can also use the\n[MonoPile](https://github.com/bloatless/MonoPile) package which provides a handler and formatter for Monolog to easily\nsend error-logs to your Pile instance.\n\n### Cleanup\n\nOld log entries can be regularly deleted using the cleanup script:\n\n`php cli/cleanup.php`\n\nThis will delete old log entries from the database. The \"lifetime\" of log entries can be configured within the `config/config.php` file. \n\nIt is recommended to regularly call the cleanup script using a cronjob.\n\n## License\n\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbloatless%2Fpile","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbloatless%2Fpile","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbloatless%2Fpile/lists"}