aboutsummaryrefslogtreecommitdiff
path: root/src/common/logging/log.h
Commit message (Collapse)AuthorAgeFilesLines
* [common/logging] Simplify logging logic and fix issues when logging before ↵lizzie2026-03-121-61/+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>
* [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-011-15/+6
| | | | | | | | | | | | | | 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>
* Update fmt to allow for v11crueter2025-04-101-1/+1
| | | Signed-off-by: swurl <swurl@swurl.xyz>
* Port changes from Early Accessdarktux2025-04-041-2/+2
|
* chore: make yuzu REUSE compliantAndrea Pappacoda2022-07-271-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [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
* logging/log.h: move enum class formatter to a separate file ...liushuyu2022-01-091-15/+1
| | | | ... 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
|
* common/logging: Reduce scope of fmt includeameerj2021-10-011-1/+1
|
* common/logging: Move Log::Entry declaration to a separate headerameerj2021-10-011-0/+4
| | | | This reduces the load of requiring to include std::chrono in all files which include log.h
* common: logging: Restructure backend codeMorph2021-06-131-119/+1
|
* common/log: Move Log namespace into the Common namespaceLioncash2021-04-141-14/+20
| | | | | Forgot to move this over when I moved the rest of the source files with lacking namespaces over.
* bgtc: Update to 12.x and implement OpenTaskServiceMorph2021-04-091-0/+1
|
* hle: service: Stub OLSC Initialize and SetSaveDataBackupSettingEnabled ↵bunnei2020-11-191-0/+1
| | | | | | functions. - Used by Animal Cross: New Horizons v1.6.0 update, minimal stub gets this update working.
* common/logging: don't use regex for path trimmingBreadFish642020-01-231-12/+21
|
* log: Add logging class for Cheat EngineZach Hilman2019-09-211-0/+1
| | | This is better than just using something like Common.Filesystem or Common.Memory
* logging: Add Vulkan backend logging class typeReinUsesLisp2019-02-121-0/+1
|
* logging/backend: Add missing services to the log filtersLioncash2018-10-231-0/+2
| | | | Just a few overlooked services.
* service: Add skeleton for psm serviceZach Hilman2018-10-201-0/+1
| | | | Seems to be the power controller. Listed in switchbrew under the category PTM services.
* Stubbed IRS (#1349)David2018-09-231-0/+1
| | | | | | | | | | * Stubbed IRS Currently we have no ideal way of implementing IRS. For the time being we should have the functions stubbed until we come up with a way to emulate IRS properly. * Added IRS to logging backend * Forward declared shared memory for irs
* common/logging: Amend documentation commentsLioncash2018-09-041-5/+5
| | | | | | | Multi-line doc comments still need the '<' after the ///, otherwise it's treated as a regular comment and makes the original doc comment broken in viewers, IDEs, etc. While we're at it, also fix some typos in the comments.
* common/logging: Add missing service log categoriesLioncash2018-08-081-0/+8
| | | | These weren't added when the services were introduced.
* service: Add usb servicesLioncash2018-08-071-0/+1
| | | | Adds basic skeleton for the usb services based off the information provided by Switch Brew.
* service: Add arp servicesLioncash2018-08-041-0/+1
| | | | | Adds the basic skeleton of the arp services based off the information provided by Switch Brew.
* Merge pull request #849 from DarkLordZach/xcibunnei2018-08-041-0/+1
|\ | | | | XCI and Encrypted NCA Support
| * Remove files that are not usedZach Hilman2018-08-011-0/+1
| |
* | Merge pull request #898 from lioncash/migbunnei2018-08-031-0/+1
|\ \ | | | | | | service: Add migration services
| * | service: Add migration servicesLioncash2018-08-021-0/+1
| | | | | | | | | | | | | | | Adds the basic skeleton for the mig:usr service based off information provided by Switch Brew.
* | | logging/log: Remove incorrect description in PCV doc commentLioncash2018-08-011-1/+1
| | | | | | | | | | | | PCV isn't the parental control service.
* | | service: Add psc servicesLioncash2018-08-011-0/+1
|/ / | | | | | | | | Adds the basic skeleton for the psc services based off the information provided by Switch Brew.
* | Merge pull request #888 from lioncash/capsbunnei2018-08-011-0/+1
|\ \ | | | | | | service: Add capture services
| * | service: Add capture servicesLioncash2018-08-011-0/+1
| |/ | | | | | | | | Adds the basic skeleton for the capture services based off information provided by Switch Brew.
* / service: Add bpc and pcv servicesLioncash2018-08-011-0/+2
|/ | | | | Adds the basic skeleton for the remaining pcv-related services based off information on Switch Brew.
* Merge pull request #875 from lioncash/fgmbunnei2018-07-311-0/+1
|\ | | | | service: Add fgm services
| * service: Add fgm servicesLioncash2018-07-311-0/+1
| | | | | | | | | | Adds the basic skeleton for the fgm services based off the information provided by Switch Brew.
* | service: Add the pcie serviceLioncash2018-07-311-0/+1
|/ | | | | Adds the basic skeleton of the pcie service based off information on Switch Brew.
* Merge pull request #857 from lioncash/wlanbunnei2018-07-301-0/+1
|\ | | | | service: Add wlan services
| * service: Add wlan servicesLioncash2018-07-281-0/+1
| | | | | | | | | | Adds the basic skeleton for the wlan services based off the information on Switch Brew.
* | service: Add btm servicesLioncash2018-07-281-0/+1
|/ | | | | Adds the skeleton for the btm services based off the information on Switch Brew.
* Merge pull request #847 from lioncash/ncmbunnei2018-07-281-0/+1
|\ | | | | service: Add ncm services
| * service: Add ncm servicesLioncash2018-07-271-0/+1
| | | | | | | | | | Adds the basic skeleton for the ncm services based off information on Switch Brew.
* | Merge pull request #846 from lioncash/miibunnei2018-07-281-0/+1
|\ \ | |/ |/| service: Add mii services
| * service: Add mii servicesLioncash2018-07-271-0/+1
| | | | | | | | | | Adds the skeleton for the mii services based off information provided by Switch Brew
* | Merge pull request #845 from lioncash/nfcbunnei2018-07-271-0/+1
|\ \ | | | | | | service: Add nfc services
| * | service: Add nfc servicesLioncash2018-07-271-0/+1
| |/ | | | | | | | | Adds the skeleton of the nfc service based off the information provided on Switch Brew.
* / service/lbl: Implement EnableVrMode, DisableVrMode and GetVrModeLioncash2018-07-271-0/+1
|/ | | | | Implements these functions according to the information available on Switch Brew.
* service: Add ldn servicesLioncash2018-07-261-0/+1
| | | | Adds ldn services based off information provided by Switch Brew.