aboutsummaryrefslogtreecommitdiff
path: root/src/common/logging
Commit message (Collapse)AuthorAgeFilesLines
* [common/logging] Simplify logging logic and fix issues when logging before ↵lizzie2026-03-1210-1093/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | system is created (#3688) - our logging code was bigger than spdlog itself, why???? just keep it simple - fix issues when logging before logging system is even started - removes the "initialized logging twice" issue - removes uneeded indirection in file logging - uses direct formatting instead of jumping hoopla-around the fmt::format() ressult - code duplication and dead code removal as usual I did explore dup2() but I think it's not worth the hassle I did try `fwopen()` but it's better if things are just kept as-is. there is a lot of noise because I removed a bunch of redundant files on logging and just put everything in one file now normally this wouldn't be a good idea, however consider: the complexity of logging; it's less than 500 lines... does it really need a whole subsystem?!?!?! ITS JUST LOGGING Signed-off-by: lizzie <lizzie@eden-emu.dev> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3688 Reviewed-by: crueter <crueter@eden-emu.dev> Reviewed-by: DraVee <chimera@dravee.dev> Reviewed-by: CamilleLaVey <camillelavey99@gmail.com> Co-authored-by: lizzie <lizzie@eden-emu.dev> Co-committed-by: lizzie <lizzie@eden-emu.dev>
* [common] remove uneeded allocations in logs (#3409)lizzie2026-02-054-75/+89
| | | | | | | | | | | | | | + make filename be a const char also mark as `noexcept` to avoid emission of uneeded unwind paths :) Signed-off-by: lizzie <lizzie@eden-emu.dev> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3409 Reviewed-by: DraVee <dravee@eden-emu.dev> Reviewed-by: Maufeat <sahyno1996@gmail.com> Reviewed-by: crueter <crueter@eden-emu.dev> Co-authored-by: lizzie <lizzie@eden-emu.dev> Co-committed-by: lizzie <lizzie@eden-emu.dev>
* [cmake] add a `YUZU_STATIC_ROOM` option (#3411)crueter2026-01-281-0/+2
| | | | | | | | | | | Lets you build ONLY the necessary targets to get a statically linked room executable. Only intended to be used on musl targets due to getaddrinfo et al. Signed-off-by: crueter <crueter@eden-emu.dev> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3411 Reviewed-by: MaranBr <maranbr@eden-emu.dev>
* [video_core/vic] Partial revert to fix Link Awakening's blue tint (#3348)lizzie2026-01-191-1/+1
| | | | | | | | | | | | fixes link awakening intro screen on non-SSE 4.1 Signed-off-by: lizzie lizzie@eden-emu.dev Co-authored-by: Caio Oliveira <caiooliveirafarias0@gmail.com> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3348 Reviewed-by: DraVee <dravee@eden-emu.dev> Reviewed-by: Maufeat <sahyno1996@gmail.com> Co-authored-by: lizzie <lizzie@eden-emu.dev> Co-committed-by: lizzie <lizzie@eden-emu.dev>
* [common/log] reoder file:func:line to file:line:func for nicer IDE ↵lizzie2026-01-181-1/+2
| | | | | | | | | | | integration with logs (#3321) Signed-off-by: lizzie <lizzie@eden-emu.dev> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3321 Reviewed-by: DraVee <dravee@eden-emu.dev> Reviewed-by: Maufeat <sahyno1996@gmail.com> Co-authored-by: lizzie <lizzie@eden-emu.dev> Co-committed-by: lizzie <lizzie@eden-emu.dev>
* [logging] disable windows-only debugger backend on non-windows platforms (#3032)lizzie2025-12-011-41/+25
| | | | | | | | | | Signed-off-by: lizzie lizzie@eden-emu.dev Co-authored-by: Caio Oliveira <caiooliveirafarias0@gmail.com> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3032 Reviewed-by: Caio Oliveira <caiooliveirafarias0@gmail.com> Reviewed-by: CamilleLaVey <camillelavey99@gmail.com> Co-authored-by: lizzie <lizzie@eden-emu.dev> Co-committed-by: lizzie <lizzie@eden-emu.dev>
* [logging] USER null fallback (#3021)crueter2025-11-171-4/+14
| | | | | | | | | If `USER` was unset, logging would crash immediately. `USER` is *not* a guaranteed variable, so to get around this we add a null fallback and also prefer `LOGNAME`, which is "standard" on POSIX systems (yet half the time isn't set because fuck me I guess) Signed-off-by: crueter <crueter@eden-emu.dev> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3021 Reviewed-by: CamilleLaVey <camillelavey99@gmail.com> Reviewed-by: Maufeat <sahyno1996@gmail.com>
* [common] fix formatting of swapped u32_le/u64_le for BE targets (#2998)lizzie2025-11-131-1/+15
| | | | | | | | | | | Fixes a bunch of errors :) Signed-off-by: lizzie <lizzie@eden-emu.dev> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/2998 Reviewed-by: Caio Oliveira <caiooliveirafarias0@gmail.com> Reviewed-by: MaranBr <maranbr@eden-emu.dev> Co-authored-by: lizzie <lizzie@eden-emu.dev> Co-committed-by: lizzie <lizzie@eden-emu.dev>
* [logging, debugger] remove unescesary logic and only query USER env variable ↵lizzie2025-10-272-133/+78
| | | | | | | | | | | | | once (#2800) - censoring an username would lead to the variable being queried everytime something is written, just store it on a static - dont use a map<> for something that can be done in a switch statment (and that the compiler will optimise for free!!!) Signed-off-by: lizzie <lizzie@eden-emu.dev> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/2800 Reviewed-by: crueter <crueter@eden-emu.dev> Co-authored-by: lizzie <lizzie@eden-emu.dev> Co-committed-by: lizzie <lizzie@eden-emu.dev>
* [dynarmic, qt] fix build with QuaZip <=1.4 and fmt v9 (#2755)crueter2025-10-171-5/+5
| | | | | Signed-off-by: crueter <crueter@eden-emu.dev> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/2755
* [common/logging] faster logging by avoiding constructing unused ↵lizzie2025-10-013-44/+41
| | | | | | | | | | | | | | strings/results (and filtering first) (#2603) basically std::string would be invoked even when the logging was filtered, then destroyed instantly, invoking malloc/free and polluting mem arenas for no good reason Signed-off-by: lizzie <lizzie@eden-emu.dev> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/2603 Reviewed-by: MaranBr <maranbr@eden-emu.dev> Reviewed-by: crueter <crueter@eden-emu.dev> Co-authored-by: lizzie <lizzie@eden-emu.dev> Co-committed-by: lizzie <lizzie@eden-emu.dev>
* [meta] fix license headers (#2547)lizzie2025-09-211-0/+3
| | | | | | | Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/2547 Reviewed-by: MaranBr <maranbr@eden-emu.dev> Co-authored-by: lizzie <lizzie@eden-emu.dev> Co-committed-by: lizzie <lizzie@eden-emu.dev>
* [cmake] enable clang-cl and WoA builds (#348)lizzie2025-09-091-1/+1
| | | | | | | | | | | | | | Compilation and CMake fixes for both Windows on ARM and clang-cl, meaning Windows can now be built on both MSVC and clang on both amd64 and aarch64. Compiling on clang is *dramatically* faster so this should be useful for CI. Co-authored-by: crueter <crueter@eden-emu.dev> Co-authored-by: crueter <crueter@crueter.xyz> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/348 Reviewed-by: CamilleLaVey <camillelavey99@gmail.com> Reviewed-by: crueter <crueter@eden-emu.dev> Co-authored-by: lizzie <lizzie@eden-emu.dev> Co-committed-by: lizzie <lizzie@eden-emu.dev>
* [debug] Rename remaining names in accordance with PR 341 (#343)MaranBr2025-08-281-1/+4
| | | | | | | | | This renames the remaining names in accordance with PR 341. Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/343 Reviewed-by: CamilleLaVey <camillelavey99@gmail.com> Co-authored-by: MaranBr <maranbr@outlook.com> Co-committed-by: MaranBr <maranbr@outlook.com>
* add option to censor the username in logs (#111)Aleksandr Popovich2025-05-191-2/+16
| | | | | | | | Signed-off-by: Aleksandr Popovich <alekpopo@pm.me> Co-authored-by: Esther1024 <danishreyjavik@outlook.com> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/111 Co-authored-by: Aleksandr Popovich <alekpopo@pm.me> Co-committed-by: Aleksandr Popovich <alekpopo@pm.me>
* User Data Migration from Citron, Sudachi, and Yuzu (#91)swurl2025-05-081-1/+1
| | | | | | | | | | | | Includes citron, sudachi, yuzu currently broken, because the eden dir is always made early? Signed-off-by: swurl <swurl@swurl.xyz> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/91 Co-authored-by: swurl <swurl@swurl.xyz> Co-committed-by: swurl <swurl@swurl.xyz>
* Runtime option for flushing logs by line (#90)swurl2025-05-081-6/+6
| | | | | | | Signed-off-by: swurl <swurl@swurl.xyz> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/90 Co-authored-by: swurl <swurl@swurl.xyz> Co-committed-by: swurl <swurl@swurl.xyz>
* Log by line compilation optionswurl2025-04-241-0/+5
| | | | Signed-off-by: swurl <swurl@swurl.xyz>
* Update fmt to allow for v11crueter2025-04-103-4/+4
| | | Signed-off-by: swurl <swurl@swurl.xyz>
* Port changes from Early Accessdarktux2025-04-042-3/+3
|
* assert/logging: Stop the logging thread and flush the backends before crashingFearlessTobi2023-12-262-0/+20
| | | | Co-Authored-By: SachinVin <26602104+SachinVin@users.noreply.github.com>
* ngc: implement serviceLiam2023-09-142-2/+2
|
* backend: Remove usage of explicit operator overloadlat9nq2023-07-251-1/+1
| | | | | | Causes a crash on MSVC from a race condition on application quit. Intended to address yuzu-emu/yuzu/issues/11137
* Use yuzu as category instead of citraNarr the Reg2023-06-031-1/+1
|
* common: logging: Implement Android logcat backend.bunnei2023-06-033-0/+63
|
* bounded_threadsafe_queue: Deduplicate and add PushModesMorph2023-03-211-1/+1
| | | | | | | Adds the PushModes Try and Wait to allow producers to specify how they want to push their data to the queue if the queue is full. If the queue is full: - Try will fail to push to the queue, returning false. Try only returns true if it successfully pushes to the queue. This may result in items not being pushed into the queue. - Wait will wait until a slot is available to push to the queue, resulting in potential for deadlock if a consumer is not running.
* logging: Make use of bounded queueMorph2023-03-211-8/+8
|
* nvnflinger: fix nameLiam2023-03-012-102/+102
|
* general: fix compile for Apple ClangLiam2022-11-221-1/+1
|
* common: remove "yuzu:" prefix from thread namesLiam2022-10-031-1/+1
|
* chore: make yuzu REUSE compliantAndrea Pappacoda2022-07-277-21/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [REUSE] is a specification that aims at making file copyright information consistent, so that it can be both human and machine readable. It basically requires that all files have a header containing copyright and licensing information. When this isn't possible, like when dealing with binary assets, generated files or embedded third-party dependencies, it is permitted to insert copyright information in the `.reuse/dep5` file. Oh, and it also requires that all the licenses used in the project are present in the `LICENSES` folder, that's why the diff is so huge. This can be done automatically with `reuse download --all`. The `reuse` tool also contains a handy subcommand that analyzes the project and tells whether or not the project is (still) compliant, `reuse lint`. Following REUSE has a few advantages over the current approach: - Copyright information is easy to access for users / downstream - Files like `dist/license.md` do not need to exist anymore, as `.reuse/dep5` is used instead - `reuse lint` makes it easy to ensure that copyright information of files like binary assets / images is always accurate and up to date To add copyright information of files that didn't have it I looked up who committed what and when, for each file. As yuzu contributors do not have to sign a CLA or similar I couldn't assume that copyright ownership was of the "yuzu Emulator Project", so I used the name and/or email of the commit author instead. [REUSE]: https://reuse.software Follow-up to b2eb10382941bef0914f4a0a4685b9033440aa9f
* service: ptm: Rewrite PSM and add TSgerman772022-06-282-2/+2
|
* general: Convert source file copyright comments over to SPDXMorph2022-04-233-9/+6
| | | | | This formats all copyright comments according to SPDX formatting guidelines. Additionally, this resolves the remaining GPLv2 only licensed files by relicensing them to GPLv2.0-or-later.
* service: jit: stub JIT serviceLiam2022-04-062-0/+2
|
* common: logging: Add a logger for NVFlinger.bunnei2022-03-242-0/+2
|
* common: Reduce unused includesameerj2022-03-192-3/+0
|
* common: Reduce unused includesameerj2022-03-193-4/+0
|
* backend: Ensure backend_thread is destructed before message_queueMerry2022-03-101-1/+1
| | | | Ensures that stop_token signals that stop has been requested before destruction of conditional_variable
* logging: Convert `backend_thread` into an `std::jthread`Wunkolo2022-02-271-13/+5
| | | | | | Was getting an unhandled `invalid_argument` [exception](https://en.cppreference.com/w/cpp/thread/thread/join) during shutdown on my linux machine. This removes the need for a `StopBackendThread` function entirely since `jthread` [automatically handles both checking if the thread is joinable and stopping the token before attempting to join](https://en.cppreference.com/w/cpp/thread/jthread/~jthread) in the case that `StartBackendThread` was never called.
* service/mnpp: Stub mnpp_appNarr the Reg2022-02-102-0/+2
| | | | Used in Super Nintendo Entertainment System™ - Nintendo Switch Online
* logging/log.h: move enum class formatter to a separate file ...liushuyu2022-01-092-15/+24
| | | | ... to common/logging/formatter.h
* logging/log: use `underlying_type` instead of hardcoding typesliushuyu2022-01-081-2/+4
|
* logging: adapt to changes in fmt 8.1liushuyu2022-01-081-1/+14
|
* service/notif: Add notif:a and stub ListAlarmSettings,Initializegerman772021-12-062-0/+2
| | | | Used by ring fit adventure 1.2.0
* Refactor Logging ImplLevi Behunin2021-11-013-28/+39
| | | | | | | Loop on stop_token and remove final_entry in Entry. Move Backend thread out of Impl Constructor to its own function. Add Start function for backend thread. Use stop token in PopWait and check if entry filename is nullptr before logging.
* common/logging: Reduce scope of fmt includeameerj2021-10-011-1/+1
|
* common/logging: Move Log::Entry declaration to a separate headerameerj2021-10-015-17/+36
| | | | This reduces the load of requiring to include std::chrono in all files which include log.h
* common/logging: Add missing includegerman772021-09-011-0/+1
|
* Merge pull request #6927 from german77/ngctMorph2021-08-282-0/+2
|\ | | | | ngct: Stub NGCT:U service
| * ngct: Stub NGCT:U servicegerman772021-08-272-0/+2
| |