Crates.io | c2-logs |
lib.rs | c2-logs |
version | 0.2.2 |
source | src |
created_at | 2023-02-19 15:39:44.637396 |
updated_at | 2024-06-22 17:00:21.540115 |
description | Capture, filter and analyze logs from Chatterino without restarting the application. |
homepage | |
repository | https://github.com/Nerixyz/c2-logs |
max_upload_size | |
id | 789112 |
size | 58,122 |
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
.
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.
In addition to the rules, the logging pattern can be customized through --pattern
as well ([%{time}] %{category}: %{message}
will include the time for example). Check Qt's documentation for all variables.
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
--pattern <PATTERN> Changes the output of Qt's message handler
-h, --help Print help
-V, --version Print version
To build the program, you need to have Rust installed.
cargo build -r
To install the program with cargo
, run
cargo install c2-logs