summaryrefslogtreecommitdiff
path: root/src/common/logging/backend.cpp
AgeCommit message (Collapse)Author
2019-03-02logging/backend: Make time_origin a class variable instead of a local staticLioncash
Moves local global state into the Impl class itself and initializes it at the creation of the instance instead of in the function. This makes it nicer for weakly-ordered architectures, given the CreateEntry() class won't need to have atomic loads executed for each individual call to the CreateEntry class.
2019-03-02logging/backend: Move CreateEntry into the Impl classLioncash
This function is only ever used within this source file and makes it easier to remove static state in the following change.
2019-02-15Adressed review commentsB3n30
2019-02-15threadsafe_queue: Add WaitIfEmpty and use it in loggingB3n30
2019-02-12logging: Add Vulkan backend logging class typeReinUsesLisp
2018-12-07Backport review comment from citra-emu/citra#4418Tobias
Original reason: As Windows multi-byte character codec is unspecified while we always assume std::string uses UTF-8 in our code base, this can output gibberish when the string contains non-ASCII characters. ::OutputDebugStringW combined with Common::UTF8ToUTF16W is preferred here.
2018-11-05Merge pull request #1441 from CarlKenner/DebuggerLogbunnei
logging: Add DebuggerBackend for logging to Visual Studio
2018-10-23logging/backend: Add missing services to the log filtersLioncash
Just a few overlooked services.
2018-10-07logging: Add DebuggerBackend for logging to Visual StudioCarl Kenner
2018-09-23Stubbed IRS (#1349)David
* 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
2018-09-15Port #4182 from Citra: "Prefix all size_t with std::"fearlessTobi
2018-08-13logging/backend: Use const reference to refer to log filterLioncash
The filter is returned via const reference, so this was making a pointless copy of the entire filter every time a message was being pushed into the logger instance.
2018-08-08common/logging: Add missing service log categoriesLioncash
These weren't added when the services were introduced.
2018-08-07service: Add usb servicesLioncash
Adds basic skeleton for the usb services based off the information provided by Switch Brew.
2018-08-04service: Add arp servicesLioncash
Adds the basic skeleton of the arp services based off the information provided by Switch Brew.
2018-08-04Merge pull request #849 from DarkLordZach/xcibunnei
XCI and Encrypted NCA Support
2018-08-03Merge pull request #898 from lioncash/migbunnei
service: Add migration services
2018-08-02service: Add migration servicesLioncash
Adds the basic skeleton for the mig:usr service based off information provided by Switch Brew.
2018-08-01service: Add psc servicesLioncash
Adds the basic skeleton for the psc services based off the information provided by Switch Brew.
2018-08-01Merge pull request #888 from lioncash/capsbunnei
service: Add capture services
2018-08-01service: Add capture servicesLioncash
Adds the basic skeleton for the capture services based off information provided by Switch Brew.
2018-08-01service: Add bpc and pcv servicesLioncash
Adds the basic skeleton for the remaining pcv-related services based off information on Switch Brew.
2018-08-01Remove files that are not usedZach Hilman
2018-07-31Merge pull request #875 from lioncash/fgmbunnei
service: Add fgm services
2018-07-31service: Add fgm servicesLioncash
Adds the basic skeleton for the fgm services based off the information provided by Switch Brew.
2018-07-31service: Add the pcie serviceLioncash
Adds the basic skeleton of the pcie service based off information on Switch Brew.
2018-07-30Merge pull request #857 from lioncash/wlanbunnei
service: Add wlan services
2018-07-28service: Add wlan servicesLioncash
Adds the basic skeleton for the wlan services based off the information on Switch Brew.
2018-07-28service: Add btm servicesLioncash
Adds the skeleton for the btm services based off the information on Switch Brew.
2018-07-28Merge pull request #847 from lioncash/ncmbunnei
service: Add ncm services
2018-07-28Merge pull request #846 from lioncash/miibunnei
service: Add mii services
2018-07-27service: Add ncm servicesLioncash
Adds the basic skeleton for the ncm services based off information on Switch Brew.
2018-07-27Merge pull request #845 from lioncash/nfcbunnei
service: Add nfc services
2018-07-27service: Add mii servicesLioncash
Adds the skeleton for the mii services based off information provided by Switch Brew
2018-07-27service: Add nfc servicesLioncash
Adds the skeleton of the nfc service based off the information provided on Switch Brew.
2018-07-27service/lbl: Implement EnableVrMode, DisableVrMode and GetVrModeLioncash
Implements these functions according to the information available on Switch Brew.
2018-07-26service: Add ldn servicesLioncash
Adds ldn services based off information provided by Switch Brew.
2018-07-20logging/backend: Add missing standard includesLioncash
A few inclusions were being satisfied indirectly. To prevent breakages in the future, include these directly.
2018-07-20logging/backend: Use std::string_view in RemoveBackend() and GetBackend()Lioncash
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.
2018-07-15Logging: Dump all logs in the queue on close in debug modeJames Rowe
2018-07-14Logging: Don't lock the queue for the duration of the writeJames Rowe
2018-07-02Add configurable logging backendsJames Rowe
2018-06-05Service/MM: add service and stub some functionsmailwl
2018-05-28Service/BCAT: add module and servicesmailwl
2018-04-27log: Remove old logging macros and functionsLioncash
Now that the old macros are no longer used, we can remove all functionality related to them.
2018-04-26Added PREPO to logging backend, Removed comments from SaveReportWithUserDavid Marcec
2018-04-05Update fmtlib to fix msvc warningsJames Rowe
Additionally, when updating fmtlib, there was a change in fmtlib broke how the old logging macro was overloaded, so this works around that by just naming the fmtlib macro impl something different
2018-04-03logging: Change FmtLogMessage to use variadic template instead of FMT_VARIADICDaniel Lim Wee Soong
Due to premature merging of #262 I think the build may be failing right now. Should merge this ASAP to fix it.
2018-04-02Merge pull request #262 from daniellimws/fmtlib-macrosbunnei
Logging: Add fmtlib-based macros
2018-03-29service: Add NFP module interface.bunnei
service: Initialize NFP service. Log: Add NFP service as a log subtype.