summaryrefslogtreecommitdiff
path: root/src/debug/Log.cpp
Commit message (Collapse)AuthorAgeFilesLines
* debug: move to hyprutils' logger (#12673)Vaxry2025-12-181-78/+0
|
* hookSystem: fix anchoring in seekNewPageAddr()Vaxry2025-10-071-1/+3
| | | | otherwise we might miss the chance to get an anchor
* debug: fix data race in Debug::log() (#11931)Dave Walker2025-10-051-1/+3
| | | | | | | | | | | | | | | | | | | | | * debug: fix data race in Debug::log() The templated Debug::log() had mutex protection but the non-template overload it calls didn't, causing crashes when plugins called log from background threads (like hypr-dynamic-cursors loading cursor themes). Fixed by moving the mutex lock from the template version into the non-template version, so all writes to shared state are protected. Fixes: hyprwm/Hyprland#11929 Fixes: VirtCode/hypr-dynamic-cursors#99 * debug: apply clang-format to Log.cpp Fix formatting to satisfy CI clang-format check. --------- Co-authored-by: Dave Walker <dave@daviey.com>
* debug: refactor class member vars (#10130)davc0n2025-04-211-14/+14
|
* core: cleanup header includes (#9088)user1111111111111111111111111111111112025-01-171-1/+0
| | | Cleanup some unneeded includes to speed up compilation
* core: Add clang-tidy (#8664)Vaxry2024-12-071-3/+5
| | | | | This adds a .clang-tidy file for us. It's not a strict requirement to be compliant, but I tuned it to be alright.
* hyprland: convert std::cout and std::cerr to std::println()Toni500git2024-10-131-2/+2
|
* core: Move to C++26 and use native_handle to CLOEXEC the debug fd (#7219)Vaxry2024-08-081-0/+3
| | | | | | | Requires GCC >= 14 / Clang >= 18 --------- Co-authored-by: Mihai Fufezan <mihai@fufexan.net>
* internal: some minor fd/socket cleanups and make logging thread safe (#7123)Tom Englund2024-07-311-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * bezier: dont loop on float values Using a floating-point loop variable with a fixed increment can cause precision errors over time due to the nature of floating-point arithmetic. and cause undesired effects. ex iteration 1 = 0.10000000149011611938 iteration 2 = 0.20000000298023223877 eventually.. iteration 8 = 0.80000001192092895508 iteration 9 = 0.89999997615814208984 * hyprctl: close sockets on destruction store socketpath and close the fd and unlink the socket path on exit. * eventloopmgr: close the timerfd close the timerfd on exit. * debug: make logging thread safe instead of opening and closing the logfile on each write open it on init and close it on compositor exit. also add a mutex so accidently using logging from a thread like the watchdog or similiar doesnt cause issues. * xwl: clean up fd logic check if the fd is actually opened before closing, and close the pipesource FD on exit.
* Core: Move to aquamarine (#6608)Vaxry2024-07-211-24/+0
| | | | | | | | | | | | | | Moves Hyprland from wlroots to aquamarine for the backend. --------- Signed-off-by: Vaxry <vaxry@vaxry.net> Co-authored-by: Mihai Fufezan <mihai@fufexan.net> Co-authored-by: Jan Beich <jbeich@FreeBSD.org> Co-authored-by: vaxerski <vaxerski@users.noreply.github.com> Co-authored-by: UjinT34 <41110182+UjinT34@users.noreply.github.com> Co-authored-by: Tom Englund <tomenglund26@gmail.com> Co-authored-by: Ikalco <73481042+ikalco@users.noreply.github.com> Co-authored-by: diniamo <diniamo53@gmail.com>
* hyprctl: added --follow option to rolliglog (#6325)Alexander2024-06-141-0/+4
| | | Co-authored-by: Крылов Александр <aleksandr.krylov@hyperus.team>
* log: Add some colors to stdout log 🔴🟡🟢🔵🟣 (#5778)thejch2024-04-291-8/+27
| | | | | | | * add colored log * add config option * make it dynamic
* core: Move /tmp/hypr to $XDG_RUNTIME_DIR/hypr (#5788)Vaxry2024-04-281-1/+1
| | | | | | Moves the directory containing sockets and logs. Also restructures lockfiles a bit. For consumers, check if `$XDG_RUNTIME_DIR/hypr` exists. If so, use it. If not, use the old `/tmp/hypr`.
* Protocols: implement protoLogVaxry2024-04-221-0/+35
|
* Migrate the config to hyprlang (#4656)Vaxry2024-02-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Migrate to hyprlang * pop up errors * fix swapped args * Meson & Nix: build with hyprlang * CI: add hyprlang to setup action * add infra for plugin stuff * fix hyprctl getoption * fix hyprctl getoption with json * format * fix post parse logic * fix autogen config * oops missed exec-once * fmt * fix ws rules * require 0.3.0 for hyprlang * nix: flaek * minor type fixes * fix cfg usages in swipe * use cvarlist for ws rules * fix throw in addPluginConfigVar * Nix: update hyprlang * minor fixes * fix disableLogs * mention hyprlang docs * bump hyprlang dep in cmake * Meson: bump min hyprlang version Nix: update hyprlang * minor fix * Nix: update meson patch --------- Co-authored-by: Mihai Fufezan <fufexan@protonmail.com>
* logging: move to an internal rolling log bufferVaxry2023-11-141-9/+8
| | | | disables logging to the logfile by default
* Debug: respect logging settings for wlr (#3584)Alexander Seleznev2023-10-151-0/+6
|
* internal: Formatter rework (#3186)Vaxry2023-09-061-58/+0
|
* internal: Wayland Protocol impl improvements (#2944)Vaxry2023-08-211-0/+4
|
* log: log wlr logs to stdoutvaxerski2023-03-241-0/+3
|
* logs: disable stdout after initvaxerski2023-03-241-1/+2
|
* Added clang format (#1239)Vaxry2022-12-161-21/+10
| | | * clang-format stuff and format files
* Remove trailing whitespace.Felix Dick2022-09-251-1/+1
|
* simplify a bit of codevaxerski2022-08-261-4/+1
|
* fix wlr loggingvaxerski2022-08-221-1/+13
|
* use a custom logging func for wlrvaxerski2022-08-221-0/+4
|
* simplify formatsvaxerski2022-07-251-23/+6
|
* added time loggingvaxerski2022-07-181-0/+17
|
* added debug:disable_logsvaxerski2022-07-011-0/+3
|
* added log level infovaxerski2022-06-251-0/+3
|
* Log to the instance foldervaxerski2022-06-031-3/+4
|
* IPC and log changes, introduce signaturevaxerski2022-06-031-2/+8
|
* fix memory issues with logsvaxerski2022-05-241-6/+25
|
* input basicsvaxerski2022-03-171-0/+4
|
* Initial Commitvaxerski2022-03-161-0/+41