{"id":17548786,"url":"https://github.com/lslezak/ylogviewer2","last_synced_at":"2025-03-29T06:30:24.941Z","repository":{"id":73224611,"uuid":"596921519","full_name":"lslezak/ylogviewer2","owner":"lslezak","description":"Experimental y2log viewer","archived":false,"fork":false,"pushed_at":"2023-02-14T08:20:04.000Z","size":334,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-03T19:13:54.342Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://lslezak.github.io/ylogviewer2/","language":"JavaScript","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/lslezak.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":"2023-02-03T08:15:55.000Z","updated_at":"2023-02-03T08:59:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"65aee8fd-59a2-49ec-a230-6184c24f7913","html_url":"https://github.com/lslezak/ylogviewer2","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/lslezak%2Fylogviewer2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lslezak%2Fylogviewer2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lslezak%2Fylogviewer2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lslezak%2Fylogviewer2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lslezak","download_url":"https://codeload.github.com/lslezak/ylogviewer2/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246149976,"owners_count":20731406,"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-21T02:43:54.868Z","updated_at":"2025-03-29T06:30:24.916Z","avatar_url":"https://github.com/lslezak.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ylogviewer2\n\n[![GitHub Pages](https://github.com/lslezak/ylogviewer2/actions/workflows/pages.yml/badge.svg)](https://github.com/lslezak/ylogviewer2/actions/workflows/pages.yml)\n[![Eslint](https://github.com/lslezak/ylogviewer2/actions/workflows/eslint.yml/badge.svg)](https://github.com/lslezak/ylogviewer2/actions/workflows/eslint.yml)\n\nThis is an experimental YaST log (y2log) viewer.\n\nThe online version is available at https://lslezak.github.io/ylogviewer2/.\n\n## Examples\n\nYou can load some example logs:\n\n- [y2log.xz](\n  https://lslezak.github.io/ylogviewer2/?log=https%3A%2F%2Fgist.githubusercontent.com%2Flslezak%2Fd36a2a15b9ccd49f035c7e51b4818ee5%2Fraw%2Fa8f2822f608f7ae0bbabb3dbe457b5202e21da25%2Fy2log.xz) -\n  Running the YaST language module in an installed system\n- [y2log-tw-installation.tar.xz](\n  https://lslezak.github.io/ylogviewer2/?log=https%3A%2F%2Fgist.githubusercontent.com%2Flslezak%2Fd36a2a15b9ccd49f035c7e51b4818ee5%2Fraw%2Fa8f2822f608f7ae0bbabb3dbe457b5202e21da25%2Fy2log-tw-installation.tar.xz) - \n  Complete openSUSE Tumbleweed installation logs\n\n## Features\n\n- Colorization depending on the error level (orange warnings, red errors)\n- Show/hide message components (date, time, severity, PID, ...)\n- Filtering\n  - By severity (warning, error,...)\n  - By component (libzypp, UI, storage, ...)\n- Can read compressed log files (\\*.gz, \\*.bz2, \\*.xz), even whole tar archives\n  created by the [save_y2logs](\n  https://github.com/yast/yast-yast2/blob/master/scripts/save_y2logs) script\n- Local processing, the selected log file is NOT uploaded anywhere, the\n  ylogviewer uses HTML5 features and processes the log completely locally!\n  That has several advantages:\n  - Speed - nothing is uploaded or downloaded, no bandwidth limitations\n  - Security - the logs might potentially contain sensitive data, all data\n    stay at your machine!\n  - Offline mode - the viewer can be used without internet connection\n\n## Build\n\nYou need NodeJS at version 12.22 or higher, tested with NodeJS 16.\n\nIn openSUSE ditributions run this command to install the latest NodeJS available:\n\n```\nzypper install nodejs\n```\n\nThen install the needed NPM packages:\n\n```\nnpm install\n```\n\nAnd build the page from the sources:\n\n```\nnpm run build\n```\n\nThe page is generated in the `dist/` subdirectory. Just deploy the content on\nthe server or you can open the `dist/index.html` file in a browser.\n\n### Development\n\nFor building in development mode run:\n\n```\nHOST=localhost npm run start:dev\n```\n\nThis will also start a development server at `http://localhost:9000`\nand automatically open that page in your preferred browser. This also enables\nthe hot reload feature so the page is automatically updated in the browser\nwhenever you change a source file.\n\n## TODO\n\nHere are some ideas how to improve the viewer:\n\n- Improve the build process, it currently a lot of RedHat fonts which are not\n  used at all (use PatternFly SCSS instead of the final SCC?)\n- Display list of the found YaST processes, useful if the log contains several\n  YaST runs, to have some table of content\n- Two passes, first scan the files, display a summary, then let the user\n  choose which parts/files will be loaded\n- Allow to not load the debug messages (just hiding them is not nice, they still\n  take lot of memory)\n- Load other files from tarball archives\n- Bookmarks to easily mark some interesting parts and easily navigate between\n  them (e.g. like in Visual Studio Code)\n- Better UI, better colors\n- Performance and memory optimizations, in some situations it is slow when\n  working with huge logs\n\n## Used Libraries\n\n### Decompression Libraries\n\n- [xzwasm](https://github.com/SteveSanderson/xzwasm) - XZ decompression library\n- [bz2.js](https://github.com/SheetJS/bz2) - Bzip2 decompression library\n- [pako](https://github.com/nodeca/pako) - Gzip decompression library\n- [tarballjs](https://github.com/ankitrohatgi/tarballjs) - Reading TAR archive\n\n### UI Libraries\n\n- [ReactJS](https://reactjs.org/) - UI library for writing components\n  - [Documentation](https://beta.reactjs.org/)\n- [PatternFly](https://www.patternfly.org/v4/)\n  - [Page template](https://github.com/patternfly/patternfly-react-seed)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flslezak%2Fylogviewer2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flslezak%2Fylogviewer2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flslezak%2Fylogviewer2/lists"}