{"id":15287365,"url":"https://github.com/frankdekker/symfony-log-viewer-bundle","last_synced_at":"2025-10-25T09:35:22.297Z","repository":{"id":217148090,"uuid":"735334590","full_name":"frankdekker/symfony-log-viewer-bundle","owner":"frankdekker","description":"A log viewer for Symfony","archived":false,"fork":false,"pushed_at":"2025-10-22T15:03:44.000Z","size":4095,"stargazers_count":35,"open_issues_count":5,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-22T16:33:07.646Z","etag":null,"topics":["bundle","log","log-viewer","logviewer","symfony","viewer"],"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/frankdekker.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-12-24T14:33:57.000Z","updated_at":"2025-10-22T15:00:57.000Z","dependencies_parsed_at":"2024-02-28T04:22:30.803Z","dependency_job_id":"6245c6a2-48d6-4326-87f1-4e48b50f4e44","html_url":"https://github.com/frankdekker/symfony-log-viewer-bundle","commit_stats":null,"previous_names":["frankdekker/symfony-log-viewer-bundle"],"tags_count":24,"template":false,"template_full_name":null,"purl":"pkg:github/frankdekker/symfony-log-viewer-bundle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frankdekker%2Fsymfony-log-viewer-bundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frankdekker%2Fsymfony-log-viewer-bundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frankdekker%2Fsymfony-log-viewer-bundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frankdekker%2Fsymfony-log-viewer-bundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/frankdekker","download_url":"https://codeload.github.com/frankdekker/symfony-log-viewer-bundle/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frankdekker%2Fsymfony-log-viewer-bundle/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280929577,"owners_count":26415347,"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-10-25T02:00:06.499Z","response_time":81,"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":["bundle","log","log-viewer","logviewer","symfony","viewer"],"created_at":"2024-09-30T15:27:57.157Z","updated_at":"2025-10-25T09:35:22.282Z","avatar_url":"https://github.com/frankdekker.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![License](https://img.shields.io/badge/license-MIT-brightgreen)](LICENSE)\n[![Minimum PHP Version](https://img.shields.io/badge/php-%3E%3D%208.1-8892BF)](https://php.net/)\n[![Minimum Symfony Version](https://img.shields.io/badge/symfony-%3E%3D%206.0-brightgreen)](https://symfony.com/releases)\n[![Vuejs](https://img.shields.io/badge/vuejs-3.5-brightgreen)](https://vuejs.org/)\n[![codecov](https://codecov.io/gh/frankdekker/symfony-log-viewer-bundle/branch/master/graph/badge.svg)](https://app.codecov.io/gh/frankdekker/symfony-log-viewer-bundle)\n![Run tests](https://github.com/frankdekker/symfony-log-viewer-bundle/actions/workflows/test.yml/badge.svg)\n\n\u003cdiv style=\"text-align: center\"\u003e\n\u003ch1 style=\"margin-bottom:0\"\u003eLog viewer for Symfony\u003c/h1\u003e\n\u003ci\u003eInspired by \u003ca href=\"https://github.com/opcodesio/log-viewer\"\u003eopcodesio/log-viewer\u003c/a\u003e for Laravel\u003c/i\u003e\n\u003cimg src=\"docs/images/preview.png\" alt=\"log-viewer\"\u003e\n\u003c/div\u003e\n\n **Log Viewer**: a bundle for your [Symfony](https://symfony.com/) app. It provides a user-friendly UI to read, filter and search log files.\n\nOut of the box it will read your Monolog logs in the `var/log` directory, but can be configured to\nread logs from any directory.\n\n\n### Features\n\n- 📂 View all the **Monolog logs** in the `%kernel.logs_dir%` directory,\n- 📂 **View other types of logs** - Apache, Nginx, or custom logs,\n- 🔍 **Search** the logs,\n- 🔍 **Filter** by log level (error, info, debug, etc.), by channel, date range or log content inclusion or exclusion,\n- 🔍 Show **context lines** before and/or after the log entry matches,\n- 🔍 **Search** multiple log files at once,\n- 🌑 **Dark mode**,\n- 🕑 **Present log entries in your local timezone**,\n- 🖥️ **Multiple host** support,\n- 💾 **Download** or **delete** log files from the UI,\n- ☎️ **API access** for folders, files \u0026 log entries,\n\n## Getting started\n\n### Requirements\n\n- **PHP 8.1+**\n- **Symfony 6.0+ or 7.0+**\n\n### Installation\n\nUse [composer](https://getcomposer.org/).\n```bash\ncomposer require fdekker/log-viewer-bundle\n```\nIf you don't use Symfony Flex, you'll need to manually enable the bundle:\n\n```php\n# /config/bundles.php\nreturn [\n    // ...\n    FD\\LogViewer\\FDLogViewerBundle::class =\u003e ['all' =\u003e true],\n];\n```\nAnd add the route by creating file `/config/routes/fd_log_viewer.php`:\n```php\n\u003c?php\nuse Symfony\\Component\\Routing\\Loader\\Configurator\\RoutingConfigurator;\n\nreturn static function (RoutingConfigurator $routingConfigurator): void {\n    $routingConfigurator-\u003eimport('.', 'fd_symfony_log_viewer')-\u003eprefix('/log-viewer');\n};\n```\n\u003cspan style=\"color:yellow\"\u003e⚠\u003c/span\u003e Ensure access to your logs are secure by adding the line below to `/config/packages/security.php`:\n```php\nreturn static function (SecurityConfig $security): void {\n    ...\n    $security-\u003eaccessControl()-\u003epath('^/log-viewer')-\u003eroles(['ROLE_ADMIN']);\n};\n```\n\nAfter installing the package, publish the front-end assets by running:\n```bash\nphp bin/console assets:install\n```\n\n### Usage\n\nOnce the installation is complete, you will be able to access **Log Viewer** directly in your browser.\n\nBy default, it is available at: `/log-viewer` on your domain.\n\n## Configuration\nDefault configuration: [(Configuration reference)](https://github.com/frankdekker/symfony-log-viewer-bundle/blob/master/docs/configuration-reference.md)\n```yaml\nfd_log_viewer:\n    home_route: null\n\n    log_files:\n        monolog:\n            type: monolog\n            name: Monolog\n            finder:\n                in: \"%kernel.logs_dir%\"\n                name: \"*.log\"\n                depth: '== 0'\n                ignoreUnreadableDirs: true\n                followLinks: false\n            downloadable: false\n            deletable: false\n            start_of_line_pattern: '/^\\[\\d{4}-\\d{2}-\\d{2}[^]]*]\\s+\\S+\\.\\S+:/'\n            log_message_pattern: '/^\\[(?P\u003cdate\u003e[^\\]]+)\\]\\s+(?P\u003cchannel\u003e[^\\.]+)\\.(?P\u003cseverity\u003e[^:]+):\\s+(?P\u003cmessage\u003e.*)\\s+(?P\u003ccontext\u003e(?:{.*?}|\\[.*?]))\\s+(?P\u003cextra\u003e(?:{.*?}|\\[.*?]))\\s+$/s'\n            date_format: null\n\n    hosts:\n        localhost:\n            name: Local\n            host: null\n```\n\nRead more:\n- [Adding more monolog directories](https://github.com/frankdekker/symfony-log-viewer-bundle/blob/master/docs/adding-more-monolog-directories.md)\n- [Modifying monolog configuration](https://github.com/frankdekker/symfony-log-viewer-bundle/blob/master/docs/modifying-monolog-configuration.md)\n- [Disabling the default monolog configuration](https://github.com/frankdekker/symfony-log-viewer-bundle/blob/master/docs/disabling-default-monolog-configuration.md)\n- [Adding additional log files](https://github.com/frankdekker/symfony-log-viewer-bundle/blob/master/docs/adding-additional-log-files.md)\n- [Adding apache logs](https://github.com/frankdekker/symfony-log-viewer-bundle/blob/master/docs/configuring-apache-logs.md)\n- [Adding nginx logs](https://github.com/frankdekker/symfony-log-viewer-bundle/blob/master/docs/configuring-nginx-logs.md)\n- [Adding php error_log](https://github.com/frankdekker/symfony-log-viewer-bundle/blob/master/docs/configuring-php-error-log.md)\n- [Adding remote hosts](https://github.com/frankdekker/symfony-log-viewer-bundle/blob/master/docs/adding-remote-hosts.md)\n- [Configuring the back home url](https://github.com/frankdekker/symfony-log-viewer-bundle/blob/master/docs/configuring-the-back-home-route.md)\n- [Advanced search queries](https://github.com/frankdekker/symfony-log-viewer-bundle/blob/master/docs/advanced-search-queries.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrankdekker%2Fsymfony-log-viewer-bundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrankdekker%2Fsymfony-log-viewer-bundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrankdekker%2Fsymfony-log-viewer-bundle/lists"}