#debugging #logs #applications #twitch #windows #capture #chatterino

app c2-logs

Capture, filter and analyze logs from Chatterino without restarting the application

4 releases

0.2.1 Sep 26, 2023
0.2.0 Sep 26, 2023
0.1.3 Jul 22, 2023
0.1.2 Feb 19, 2023

#1638 in Command line utilities

Download history 19/week @ 2024-02-19 1/week @ 2024-02-26 53/week @ 2024-04-01

53 downloads per month

MIT/Apache

25KB
587 lines

c2-logs

Capture, filter and analyze logs from Chatterino without restarting the application on Windows. You can download a prebuilt application from the releases tab. This program uses Windows' Debugger API to capture logs from Chatterino and calls QLoggingCategory::setFilterRules.

Usage

  1. Open Chatterino regularly
  2. Run c2-logs chatterino.*.debug=true (if you don't have it in your PATH, run it using .\c2-logs.exe)

You can specify multiple rules. To enable debug logging from Chatterino while excluding the chatterino.http category, run c2-logs chatterino.*.debug=true chatterino.http.debug=false. Check Qt's documentation on the logging rules.

Usage: c2-logs.exe [OPTIONS] [RULES]...

Arguments:
  [RULES]...  Qt filter rules (e.g. *.debug=true or foo.bar.debug=false) multiple rules will be joined by a newline

Options:
      --exe <EXECUTABLE>  Use this to specify the name of the chatterino executable. [default: chatterino.exe]
      --pid <PID>         Use this to specify a specific process-id to attach to.
  -o <OUTPUT_FILE>        Output to a file instead

Building

To build the program, you need to have Rust installed.

cargo build -r

Installing

To install the program with cargo, run

cargo install c2-logs

Dependencies

~159MB
~2.5M SLoC