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.
7 years ago
B3n30
2195f10d15
Adressed review comments
8 years ago
B3n30
4154936568
threadsafe_queue: Add WaitIfEmpty and use it in logging
8 years ago
ReinUsesLisp
b12ab4d805
logging: Add Vulkan backend logging class type
7 years ago
Tobias
eb15711ee6
Backport review comment from citra-emu/citra#4418
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.
8 years ago
Lioncash
f80b80b922
logging/backend: Add missing services to the log filters
Just a few overlooked services.
8 years ago
Zach Hilman
3b8c0f8885
service: Add skeleton for psm service
Seems to be the power controller. Listed in switchbrew under the category PTM services.
8 years ago
Carl Kenner
f5f6292810
logging: Add DebuggerBackend for logging to Visual Studio
8 years ago
Lioncash
6f16826260
text_formatter: Avoid unnecessary string temporary creation in PrintMessage()
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.
8 years ago
David
2513e086ab
Stubbed IRS ( #1349 )
* 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
8 years ago
fearlessTobi
63c2e32e20
Port #4182 from Citra: "Prefix all size_t with std::"
8 years ago
Lioncash
6ef84f1c4c
common/logging: Amend documentation comments
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.
8 years ago
Lioncash
2949d9552c
common/logging/filter: Replace C-style case with C++ static_cast
8 years ago
Lioncash
978f3a3282
common/logging/filter: Make constructor explicit
Implicit conversions aren't desirable here.
8 years ago
Lioncash
5a53d75313
logging/text_formatter: Use empty braces for initializing 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).
8 years ago
Lioncash
bc7bfd96f0
logging/backend: Use const reference to refer to log filter
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.
8 years ago
Lioncash
6e90f0bf6a
common/logging: Add missing service log categories
These weren't added when the services were introduced.
8 years ago
Lioncash
45bc449ff9
service: Add usb services
Adds basic skeleton for the usb services based off the information provided by Switch Brew.
8 years ago
Lioncash
de72956181
service: Add arp services
Adds the basic skeleton of the arp services based off the information
provided by Switch Brew.
8 years ago
Lioncash
7469e26e5e
service: Add migration services
Adds the basic skeleton for the mig:usr service based off information
provided by Switch Brew.
8 years ago
Lioncash
42c5171322
logging/log: Remove incorrect description in PCV doc comment
PCV isn't the parental control service.
8 years ago
Lioncash
5233040ab4
service: Add psc services
Adds the basic skeleton for the psc services based off the information
provided by Switch Brew.
8 years ago
Lioncash
e39294c267
service: Add capture services
Adds the basic skeleton for the capture services based off information
provided by Switch Brew.
8 years ago
Lioncash
d109279543
service: Add bpc and pcv services
Adds the basic skeleton for the remaining pcv-related services based off
information on Switch Brew.
8 years ago
Zach Hilman
df5b75694f
Remove files that are not used
8 years ago
Lioncash
268eeeb406
service: Add fgm services
Adds the basic skeleton for the fgm services based off the information
provided by Switch Brew.
8 years ago
Lioncash
e373027a73
service: Add the pcie service
Adds the basic skeleton of the pcie service based off information on
Switch Brew.
8 years ago
Tobias
420f8fb29e
Port #3758 from Citra ( #852 ): Add missing std::string import in text_formatter
8 years ago
Lioncash
6ea416091e
service: Add wlan services
Adds the basic skeleton for the wlan services based off the information
on Switch Brew.
8 years ago
Lioncash
ca7655be3a
service: Add btm services
Adds the skeleton for the btm services based off the information on
Switch Brew.
8 years ago
Lioncash
7931cc0ceb
service: Add ncm services
Adds the basic skeleton for the ncm services based off information on
Switch Brew.
8 years ago
Lioncash
f46bfdd77d
service: Add mii services
Adds the skeleton for the mii services based off information provided by
Switch Brew
8 years ago
Lioncash
04d144aa40
service: Add nfc services
Adds the skeleton of the nfc service based off the information provided
on Switch Brew.
8 years ago
Lioncash
ea8dd8b650
service/lbl: Implement EnableVrMode, DisableVrMode and GetVrMode
Implements these functions according to the information available on
Switch Brew.
8 years ago
Lioncash
8781beaf0d
service: Add ldn services
Adds ldn services based off information provided by Switch Brew.
8 years ago
Lioncash
f63ccbd936
logging/filter: Use std::string_view in ParseFilterString()
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
8 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.
8 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.
8 years ago
Lioncash
f5d7706ca1
externals: update fmt to version 5.1.0
Previously, we were on 4.1.0, which was a major version behind.
8 years ago
James Rowe
497b81558e
Logging: Dump all logs in the queue on close in debug mode
8 years ago
James Rowe
6daebaaa57
Logging: Don't lock the queue for the duration of the write
8 years ago
bunnei
76b475faf7
Fix build and address review feedback
8 years ago
James Rowe
6269a01b4e
Add configurable logging backends
8 years ago
James Rowe
0d46f0df12
Update clang format
8 years ago
James Rowe
638956aa81
Rename logging macro back to LOG_*
8 years ago
mailwl
7e3d746b06
Service/MM: add service and stub some functions
8 years ago
mailwl
7757cc1a7f
Service/BCAT: add module and services
8 years ago
Lioncash
d43c49264f
log: Remove old logging macros and functions
Now that the old macros are no longer used, we can remove all functionality related to them.
8 years ago
David Marcec
abc23416e8
Switched to NGLOG_WARNING
8 years ago
David Marcec
f1f7f2cba9
Added PREPO to logging backend, Removed comments from SaveReportWithUser
8 years ago