{"repo":"czottmann/obsidian-logstravaganza","free":true,"listed":false,"github":"https://github.com/czottmann/obsidian-logstravaganza","clone":"git clone https://github.com/czottmann/obsidian-logstravaganza.git","description":"A simple Obsidian plugin that proxies `console.*()` calls and copies log messages and uncaught exceptions to a file in your vault.","language":"TypeScript","stars":46,"topics":["logging","obsidian","obsidian-md","pkm","obsidian-plugin"],"license":"MIT","category":"productivity","readme_excerpt":"Logstravaganza This is a plugin for Obsidian that logs all console output and uncaught exceptions to a note in a vault. It's mainly aimed at developers. As such, it's also useful for letting your plugin's users help you debug your plugin's issues: Ask your customers to install this plugin, then send you the resulting log when they report a bug. What it does - Intercepts and writes all console. () output to a file in your vault. - Logs uncaught exceptions to the same file, including exceptions occurring in async code and promises (as long as they're happening in the main thread). - Logs can be written in several formats: - NDJSON, a plain text format that can be read by humans and machines alike. Every line in the file is a JSON object. Think CSV, but with JSON. - Markdown file containing a table. - Markdown file containing code blocks. Example output The log output will be written to a console-log.DEVICE-NAME. or, optionally, console-log.DEVICE-NAME.2024-01-31. . (Here, DEVICE-NAME is a placeholder for the actual device name as returned by the core Sync plugin. This works whether or not Sync is activated or not.) Using the NDJSON formatter Output file name: console-log.DEVICE-NAME.ndjson Obsidian won't open .ndjson files, even though they're basically plain text files. In NDJSON, every line is a self-contained JSON object. This makes it easy to read and parse with tools like jq . For example, the file can be filtered with jq : This will only show the lines where the level is ","default_branch":null,"files":null,"tree":[],"storefront":"/r/czottmann","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/czottmann/obsidian-logstravaganza/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}