summaryrefslogtreecommitdiff
path: root/src/common/logging/text_formatter.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* text_formatter: Avoid unnecessary string temporary creation in PrintMessage()Gravatar Lioncash2018-10-041-1/+1
| | | | | | | | | operator+ for std::string creates an entirely new string, which is kind of unnecessary here if we just want to append a null terminator to the existing one. Reduces the total amount of potential allocations that need to be done in the logging path.
* logging/text_formatter: Use empty braces for initializing ↵Gravatar Lioncash2018-08-211-1/+1
| | | | | | | | | CONSOLE_SCREEN_BUFFER_INFO instance The previous form of initializing done here is a C-ism, an empty set of braces is sufficient for initializing (and doesn't potentially cause missing brace warnings, given the first member of the struct is a COORD struct).
* Logging: Create logging macros based on fmtlibGravatar Daniel Lim Wee Soong2018-03-221-31/+10
| | | | | | | | | 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.
* Format: Run the new clang format on everythingGravatar James Rowe2018-01-201-1/+1
|
* Remove unnecessary WIN32_LEAN_AND_MEAN macro definitionGravatar Kloen2017-06-301-1/+0
|
* Support mingw cross-compileGravatar Jannik Vogel2016-12-051-1/+1
|
* Remove empty newlines in #include blocks.Gravatar Emmanuel Gil Peyrot2016-09-211-3/+2
| | | | | | | This makes clang-format useful on those. Also add a bunch of forgotten transitive includes, which otherwise prevented compilation.
* Sources: Run clang-format on everything.Gravatar Emmanuel Gil Peyrot2016-09-181-21/+31
|
* Use UNREACHABLE macro for impossible cases in previous commitGravatar Benjamin Barenblat2015-08-021-2/+2
| | | | Use the UNREACHABLE macro instead of `ASSERT(false, ...);`.
* Handle invalid `Log::Level::Count`Gravatar Benjamin Barenblat2015-08-021-0/+5
| | | | | | 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.
* Common: Remove async loggingGravatar Yuri Kunde Schlesner2015-05-121-17/+2
| | | | | | | | | | | 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.)
* Common: Remove common.hGravatar Yuri Kunde Schlesner2015-05-071-0/+1
|
* Logging: check for filter before sending to the queue, to skip all heavy ↵Gravatar Emmanuel Gil Peyrot2015-03-061-5/+2
| | | | formatting on the other thread.
* License changeGravatar purpasmart962014-12-201-1/+1
|
* Restore the original console color after logging a message.Gravatar Yuri Kunde Schlesner2014-12-141-13/+23
| | | | Fixes #277
* Add configurable per-class log filteringGravatar Yuri Kunde Schlesner2014-12-131-2/+6
|
* Implement text path trimming for shorter paths.Gravatar Yuri Kunde Schlesner2014-12-131-1/+26
|
* Re-add coloring to the console logging output.Gravatar Yuri Kunde Schlesner2014-12-131-0/+50
|
* New logging systemGravatar Yuri Kunde Schlesner2014-12-131-0/+47