{"id":17381825,"url":"https://github.com/HeyItsGilbert/ChocoLogParse","last_synced_at":"2025-02-27T10:30:40.427Z","repository":{"id":192329712,"uuid":"686465450","full_name":"HeyItsGilbert/ChocoLogParse","owner":"HeyItsGilbert","description":"Parses Chocolatey logs into easy to use objects.","archived":false,"fork":false,"pushed_at":"2024-07-25T03:13:43.000Z","size":648,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-10-12T13:05:22.139Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PowerShell","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/HeyItsGilbert.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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-09-02T22:10:31.000Z","updated_at":"2024-09-16T17:21:13.000Z","dependencies_parsed_at":"2023-10-01T01:46:22.529Z","dependency_job_id":null,"html_url":"https://github.com/HeyItsGilbert/ChocoLogParse","commit_stats":null,"previous_names":["heyitsgilbert/chocologparse"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HeyItsGilbert%2FChocoLogParse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HeyItsGilbert%2FChocoLogParse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HeyItsGilbert%2FChocoLogParse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HeyItsGilbert%2FChocoLogParse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HeyItsGilbert","download_url":"https://codeload.github.com/HeyItsGilbert/ChocoLogParse/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219842826,"owners_count":16556565,"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-16T07:01:55.019Z","updated_at":"2024-10-16T07:04:52.621Z","avatar_url":"https://github.com/HeyItsGilbert.png","language":"PowerShell","funding_links":[],"categories":["PowerShell"],"sub_categories":[],"readme":"# ChocoLogParse\n\nParses Chocolatey logs into easy to use objects.\n\n[![PowerShell Gallery](https://img.shields.io/powershellgallery/dt/ChocoLogParse)\n![PowerShell Gallery Version](https://img.shields.io/powershellgallery/v/ChocoLogParse)\n![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/HeyItsGilbert/ChocoLogParse/.github/workflows/CI.yaml?branch=main)\n![PowerShell Gallery](https://img.shields.io/powershellgallery/p/ChocoLogParse)](https://www.powershellgallery.com/packages/ChocoLogParse/)\n\nDocs automatically updated at [heyitsgilbert.github.io/ChocoLogParse](https://heyitsgilbert.github.io/ChocoLogParse/)\n\nAvailable via the [PowerShell Gallery](https://www.powershellgallery.com/packages/ChocoLogParse/)\n\n## Overview\n\nParsing the Chocolatey logs can be daunting because at first glance it's\ndifficult to see when things change from one thread to the next. Other tools\nlike `cmtrace` don't support the Log4Net format. This module gives you a simple\nway of converting the logs into a simple to parse/filter objects.\n\nTo also help improve discoverability we included an object formatter so that you\ncan quickly see error log entries, etc.\n\n## Installation\n\n```powershell\nInstall-Module ChocoLogParse\n```\n\n## Examples\n\nTo parse the latest Chocolatey log file run the following.\n\n```powershell\nImport-Module ChocoLogParse\n$logs = Read-ChocoLog\n```\n\nFind install attempts of specific app (zoom in this example)\n\n```powershell\nRead-ChocoLog | ?{ $_.cli -like \"*zoom*\"}\n```\n\nOnce you found your thread you might want to filter in/out debug.\n\n```powershell\n$logs[0].logs | ?{ $_.level -ne 'DEBUG' }\n```\n\nTo grab the latest log you can use `Get-ChocoLogEntry`. Which is also includes\na `-Report` flag to print an easier to read set of logs and highlight some\nkey information at the top.\n\n```powershell\nGet-ChocoLogEntry\n```\nGet more details at [heyitsgilbert.github.io/ChocoLogParse](https://heyitsgilbert.github.io/ChocoLogParse/)\n\n## Building and Testing\n\nIf you want to contribute or would like to make a local build you just need to\nrun the `build.ps1` script with the relevant task.\n\nFor your first run you'll want to run the Bootstrap which will fetch all the\nappropriate modules and tools (as seen in the `requirements.ps1`).\n\n```powershell\n.\\build.ps1 -Bootstrap -Task Test\n```\n\nBuilding and testing works on Windows PowerShell and PowerShell Core.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FHeyItsGilbert%2FChocoLogParse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FHeyItsGilbert%2FChocoLogParse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FHeyItsGilbert%2FChocoLogParse/lists"}