summaryrefslogtreecommitdiff
path: root/src/debug/Log.hpp
Commit message (Collapse)AuthorAgeFilesLines
* debug: move to hyprutils' logger (#12673)Vaxry2025-12-181-75/+0
|
* debug: fix data race in Debug::log() (#11931)Dave Walker2025-10-051-2/+0
| | | | | | | | | | | | | | | | | | | | | * 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-2/+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.
* logs: don't get timezone every time logging (#7550)Ikalco2024-08-281-2/+3
| | | its expensive cause cpp dum
* debug: dont manually unlock the lock_guard (#7210)Tom Englund2024-08-071-1/+0
| | | | when lock_guard goes out of scope it RAII itself and calls unlock. causes crashes on freebsd/libc++ and double unlocking a mutex is UB.
* internal: some minor fd/socket cleanups and make logging thread safe (#7123)Tom Englund2024-07-311-0/+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-2/+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>
* log: log with local timezone (#6331)giskard2024-06-051-3/+5
| | | | | * log: log with local timezone * log: backward compatability for clang 17 with libc++
* log: Add some colors to stdout log 🔴🟡🟢🔵🟣 (#5778)thejch2024-04-291-0/+1
| | | | | | | * add colored log * add config option * make it dynamic
* Protocols: implement protoLogVaxry2024-04-221-27/+5
|
* Migrate the config to hyprlang (#4656)Vaxry2024-02-181-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* style/ci: apply clang-format and verify it in ci (#4039)François Conzelmann2023-12-061-2/+1
| | | | | * style: apply clang-format * ci: add new clang-format job to CI
* internal: various improvements to avoid crashes on exitVaxry2023-12-061-0/+4
|
* logging: move to an internal rolling log bufferVaxry2023-11-141-11/+17
| | | | disables logging to the logfile by default
* fix(build): do not include wlr headers directly, use includes.hpp instead. ↵memchr2023-10-161-2/+2
| | | | (#3587)
* logging/format: use std::format_string to catch formatting string errors at ↵memchr2023-09-201-17/+8
| | | | | | | compile time (#3377) * fix(log): use constexpr format string * deprecate getFormat
* internal: Formatter rework (#3186)Vaxry2023-09-061-5/+69
|
* internal: Wayland Protocol impl improvements (#2944)Vaxry2023-08-211-3/+4
|
* logs: disable stdout after initvaxerski2023-03-241-2/+3
|
* Added clang format (#1239)Vaxry2022-12-161-7/+8
| | | * clang-format stuff and format files
* use a custom logging func for wlrvaxerski2022-08-221-0/+2
|
* added time loggingvaxerski2022-07-181-0/+1
|
* added debug:disable_logsvaxerski2022-07-011-0/+1
|
* added log level infovaxerski2022-06-251-1/+2
|
* Log to the instance foldervaxerski2022-06-031-1/+1
|
* IPC and log changes, introduce signaturevaxerski2022-06-031-0/+3
|
* Initial Commitvaxerski2022-03-161-0/+16