Commit Graph

17 Commits (a31ed02ae48eaeb3ee6ac1c45f21d5dd3a9ac376)

Author SHA1 Message Date
BreadFish64 a31ed02ae4 common/logging: don't use regex for path trimming 5 years ago
Lioncash 43c1092031 logging/backend: Move CreateEntry into the Impl class
This function is only ever used within this source file and makes it
easier to remove static state in the following change.
6 years ago
B3n30 4154936568 threadsafe_queue: Add WaitIfEmpty and use it in logging 6 years ago
Carl Kenner f5f6292810 logging: Add DebuggerBackend for logging to Visual Studio 7 years ago
fearlessTobi 63c2e32e20 Port #4182 from Citra: "Prefix all size_t with std::" 7 years ago
Lioncash 7a1a860abe logging/backend: Add missing standard includes
A few inclusions were being satisfied indirectly. To prevent breakages
in the future, include these directly.
7 years ago
Lioncash 457d1b4490 logging/backend: Use std::string_view in RemoveBackend() and GetBackend()
These can just use a view to a string since its only comparing against
two names in both cases for matches. This avoids constructing
std::string instances where they aren't necessary.
7 years ago
James Rowe 6269a01b4e Add configurable logging backends 7 years ago
Daniel Lim Wee Soong 3b558eebee Logging: Create logging macros based on fmtlib
Add a new set of logging macros based on fmtlib
Similar but not exactly the same as https://github.com/citra-emu/citra/pull/3533

Citra currently uses a different version of fmt, which does not support FMT_VARIADIC so
make_args is used instead. On the other hand, yuzu uses fmt 4.1.0 which doesn't have make_args yet
so FMT_VARIADIC is used.
7 years ago
James Rowe 096be16636 Format: Run the new clang format on everything 7 years ago
Emmanuel Gil Peyrot ebdae19fd2 Remove empty newlines in #include blocks.
This makes clang-format useful on those.

Also add a bunch of forgotten transitive includes, which otherwise
prevented compilation.
9 years ago
Emmanuel Gil Peyrot dc8479928c Sources: Run clang-format on everything. 9 years ago
Lioncash c89e3d5951 backend: defaulted move constructor/assignment 9 years ago
Yuri Kunde Schlesner b88c91dd3d Common: Remove async logging
It provided a large increase in complexity of the logging system while
having a negligible performance impact: the usage patterns of the ring
buffer meant that each log contended with the logging thread, causing
it to effectively act as a synchronous extra buffering.

Also removed some broken code related to filtering of subclasses which
was broken since it was introduced. (Which means no one ever used that
feature anyway, since, 8 months later, no one ever complained.)
10 years ago
Emmanuel Gil Peyrot 0aa44e238d Logging: check for filter before sending to the queue, to skip all heavy formatting on the other thread. 10 years ago
purpasmart96 ebfd831ccb License change 10 years ago
Yuri Kunde Schlesner 616d874443 New logging system 10 years ago