{"id":18029814,"url":"https://github.com/ajaxray/kohana-log-viewer","last_synced_at":"2025-03-27T03:31:13.130Z","repository":{"id":1947578,"uuid":"2877286","full_name":"ajaxray/Kohana-Log-Viewer","owner":"ajaxray","description":"Shows log files of Kohana PHP Framework with a beautiful interface","archived":false,"fork":false,"pushed_at":"2019-06-14T12:02:22.000Z","size":79,"stargazers_count":52,"open_issues_count":5,"forks_count":25,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-23T01:11:08.604Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","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/ajaxray.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}},"created_at":"2011-11-29T18:59:55.000Z","updated_at":"2022-12-27T22:43:17.000Z","dependencies_parsed_at":"2022-08-29T14:01:49.000Z","dependency_job_id":null,"html_url":"https://github.com/ajaxray/Kohana-Log-Viewer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajaxray%2FKohana-Log-Viewer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajaxray%2FKohana-Log-Viewer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajaxray%2FKohana-Log-Viewer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajaxray%2FKohana-Log-Viewer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ajaxray","download_url":"https://codeload.github.com/ajaxray/Kohana-Log-Viewer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245778605,"owners_count":20670682,"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":[],"created_at":"2024-10-30T09:11:34.466Z","updated_at":"2025-03-27T03:31:12.727Z","avatar_url":"https://github.com/ajaxray.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kohana 3.x Log Viewer module\n\n## A Kohana module for exploring log files\n\n### Disclaimer\n\nThis module forks original one from https://github.com/ajaxray adding suport for Kohana's 3.2 log file format, which includes stack trace\n\n### Installation:\n\n1. Download this module and add the **logviewer** folder it to your `MODPATH`\n2. Enable it in the `bootstrap` file\n3. Specify custom `bootstrap.css`, `style.css`, `jquery.js` files in config file (copy it from `MODPATH/logviewer/config/logviewer.php` to `APPPATH/config/logviewer.php` and edit. You may skip this step, default assets will be used.\n4. If you wish, you can translate LogViewer to any language, look at `MODPATH\\logviewer/i18n/ru.php` for example. You may skip this step, if only English language is enough.\n5. Go to _http://your-app-root/logs_\n6. You are done!\n\n![Kohana Log Viewer interface](http://ajaxray.com/files/log_formatted.png \"Kohana Log Viewer interface\")\n\n### How to use?\n\nIt's completely self explanatory. Here are some points for quick refs -\n\n- All months are listed on top nav. e.g, **2011/11**\n- Left sidebar has a list of available log files in selected month\n- If not specified, today's (current month and day) log file will be displayed\n- If you want to see a fresh log for next call, just delete today's file. Kohana will generate it and add\n- Formatted mode (default) may not extract all info correctly for displaying in rows. Use **raw mode** for those situations. _NEED IMPROVEMENT_ here.\n- You can use *Level* listbox for filtering by log levels.\n\n### How to limit access to LogViewer\n\nLogViewer use standart Kohana naming convention, so you can easily extend it in your application. For example, if you use standart Auth module, and wish to limit access to LogViewer only for admins, create `APPPATH/classes/Controller/Logs.php` file and type something like:\n```\n\u003c?php defined('SYSPATH') or die('No direct script access.');\nclass Controller_Logs extends Kohana_Controller_Logs {\n\tfunction before(){\n\t\t$auth=new Auth_ORM(Kohana::$config-\u003eload('auth'));\n\t\tif(!$auth-\u003elogged_in('admin'))\n\t\t\tthrow HTTP_Exception::factory(403,__('Access denied'))-\u003erequest($this-\u003erequest);\n\t\t// skip next line, if you don't want to limit log erasure\n\t\t$this-\u003e_allow_delete=$auth-\u003elogged_in('power_admin');\n\t\tparent::before();\n\t}\n}\n```\nIf you use your own authentication system, you may easily adapt this code to you conditions\n\n### Notes:\n\n- _http://your-app-root/logs_ should display the log reports interface. If it don't, please check the routing in `modules/logviewer/init.php`\n- If you change the folder name, change the paths in `modules/logviewer/views/logs/layout.php` accordingly.\n- If you want to improve, please fork and participate.\n- If you've a suggestion or found a bug, please let me know at - anisniit(at)gmail.com\n- BE CAREFUL ABOUT USING ON PRODUCTION!\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajaxray%2Fkohana-log-viewer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fajaxray%2Fkohana-log-viewer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajaxray%2Fkohana-log-viewer/lists"}