Commit Graph

17 Commits (c2e0820ac2c0b51c0b14af608f4225eec8712f5e)

Author SHA1 Message Date
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
Kloen 0e428823f0 Remove unnecessary WIN32_LEAN_AND_MEAN macro definition 8 years ago
Jannik Vogel 45d941d62e Support mingw cross-compile 8 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
Benjamin Barenblat 0298b7bedd
Use UNREACHABLE macro for impossible cases in previous commit
Use the UNREACHABLE macro instead of `ASSERT(false, ...);`.
10 years ago
Benjamin Barenblat 9ff23da255
Handle invalid `Log::Level::Count`
Add a case of `Log::Level::Count` to all switch statements that
dispatch on `Log::Level`.  The case simply asserts `false` and notes
the invalid log level.
10 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
Yuri Kunde Schlesner e1fbac3ca1 Common: Remove common.h 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 ac87c3b0d0 Restore the original console color after logging a message.
Fixes #277
10 years ago
Yuri Kunde Schlesner 0e0a007a25 Add configurable per-class log filtering 11 years ago
Yuri Kunde Schlesner 6390c66e95 Implement text path trimming for shorter paths. 11 years ago
Yuri Kunde Schlesner 6b0fb62c47 Re-add coloring to the console logging output. 11 years ago
Yuri Kunde Schlesner 616d874443 New logging system 11 years ago