{"id":20321279,"url":"https://github.com/virdiggg/log-parser-ci3","last_synced_at":"2026-01-29T16:35:41.208Z","repository":{"id":262663851,"uuid":"887971680","full_name":"virdiggg/log-parser-ci3","owner":"virdiggg","description":"Log parser for default formatted log file in CodeIgniter 3","archived":false,"fork":false,"pushed_at":"2024-11-13T15:44:14.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-04T16:13:30.406Z","etag":null,"topics":["codeigniter","codeigniter-library","codeigniter3","logging","php"],"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/virdiggg.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":"2024-11-13T15:41:06.000Z","updated_at":"2024-11-13T15:56:25.000Z","dependencies_parsed_at":"2024-11-13T16:40:39.680Z","dependency_job_id":"45f02de0-210e-4766-9d46-bf9cc7b6b936","html_url":"https://github.com/virdiggg/log-parser-ci3","commit_stats":null,"previous_names":["virdiggg/log-parser-ci3"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/virdiggg/log-parser-ci3","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/virdiggg%2Flog-parser-ci3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/virdiggg%2Flog-parser-ci3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/virdiggg%2Flog-parser-ci3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/virdiggg%2Flog-parser-ci3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/virdiggg","download_url":"https://codeload.github.com/virdiggg/log-parser-ci3/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/virdiggg%2Flog-parser-ci3/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28880980,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-29T10:31:27.438Z","status":"ssl_error","status_checked_at":"2026-01-29T10:31:01.017Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["codeigniter","codeigniter-library","codeigniter3","logging","php"],"created_at":"2024-11-14T19:12:21.814Z","updated_at":"2026-01-29T16:35:41.190Z","avatar_url":"https://github.com/virdiggg.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# A Simple Log Parser for CodeIgniter 3\n\n\u003cimg src=\"https://img.shields.io/packagist/php-v/virdiggg/log-parser-ci3\" /\u003e \u003cimg src=\"https://img.shields.io/badge/codeigniter--version-3-green\" /\u003e \u003cimg src=\"https://img.shields.io/github/license/virdiggg/log-parser-ci3\" /\u003e\n\n## Inspired from [opcodesio/log-viewer](https://github.com/opcodesio/log-viewer) for laravel.\n\n### HOW TO USE\n- Install this library with composer\n```bash\ncomposer require virdiggg/log-parser-ci3\n```\n- Open your `config/config.php`, then edit this line.\n```diff\n-$config['log_threshold'] = 0;\n+$config['log_threshold'] = 1;\n```\n- Optional, you can use `.log` extension, not the default `.php`. Edit this line.\n```diff\n-$config['log_file_extension'] = '';\n+$config['log_file_extension'] = 'log';\n```\n- Create a controller to use this library. Example is `application/controller/App.php`. This example is in JSON format; you can modify it accordingly.\n```php\n\u003c?php defined('BASEPATH') or exit('No direct script access allowed');\n\nuse Virdiggg\\LogParserCI3\\MYViewer;\n\nclass App extends CI_Controller\n{\n    public $logs;\n    public function __construct()\n    {\n        parent::__construct();\n        $this-\u003elogs = new MYViewer();\n    }\n\n    public function logs()\n    {\n        // Log path\n        $this-\u003elogs-\u003esetPath(APPPATH . 'logs');\n        // Log extension\n        $this-\u003elogs-\u003esetExt('php');\n\n        $filterDate = $this-\u003einput-\u003epost('date') ? $this-\u003einput-\u003epost('date') : '2023-01-01';\n\n        $this-\u003elogs-\u003esetName('log-' . $filterDate);\n\n        $result = $this-\u003elogs-\u003egetLogs();\n\n        echo json_encode($result);\n        return;\n    }\n}\n```\n- Open your website.\n```\nhttp://localhost/codeigniter/app/logs\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvirdiggg%2Flog-parser-ci3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvirdiggg%2Flog-parser-ci3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvirdiggg%2Flog-parser-ci3/lists"}