summaryrefslogtreecommitdiff
path: root/src/common/logging
AgeCommit message (Collapse)Author
2018-10-04text_formatter: Avoid unnecessary string temporary creation in PrintMessage()Lioncash
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.
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-09-04common/logging: Amend documentation commentsLioncash
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.
2018-09-04common/logging/filter: Replace C-style case with C++ static_castLioncash
2018-09-04common/logging/filter: Make constructor explicitLioncash
Implicit conversions aren't desirable here.
2018-08-21logging/text_formatter: Use empty braces for initializing ↵Lioncash
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).
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-01logging/log: Remove incorrect description in PCV doc commentLioncash
PCV isn't the parental control service.
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-30Port #3758 from Citra (#852): Add missing std::string import in text_formatterTobias
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/filter: Use std::string_view in ParseFilterString()Lioncash
Allows avoiding constructing std::string instances, since this only reads an arbitrary sequence of characters. We can also make ParseFilterRule() internal, since it doesn't depend on any private instance state of Filter
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-18externals: update fmt to version 5.1.0Lioncash
Previously, we were on 4.1.0, which was a major version behind.
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-02Fix build and address review feedbackbunnei
2018-07-02Add configurable logging backendsJames Rowe
2018-07-02Update clang formatJames Rowe
2018-07-02Rename logging macro back to LOG_*James 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-26Switched to NGLOG_WARNINGDavid Marcec
2018-04-26Added PREPO to logging backend, Removed comments from SaveReportWithUserDavid Marcec