Lioncash
b34cf1fe34
log/backend: Make use of erase_if
Same behavior, but less verbose.
5 years ago
Lioncash
5f80027f15
log/backend: Correct order of const in copy constructor
Follows our predominant coding style. Also explicitly specifies the move
constructor/assignment operator as well.
5 years ago
Lioncash
bb1bc3dd57
common/log: Move Log namespace into the Common namespace
Forgot to move this over when I moved the rest of the source files with
lacking namespaces over.
5 years ago
bunnei
7a76bc30fa
common: Move settings to common from core.
- Removes a dependency on core and input_common from common.
5 years ago
Morph
6e9d0a685b
bgtc: Update to 12.x and implement OpenTaskService
5 years ago
FearlessTobi
ae1899577f
Address review comments
5 years ago
xperia64
34bacedd1a
Delete the old log file before rotating ( #5675 )
5 years ago
bunnei
a8aea907f4
Fix the old log file to work with the log parser.
5 years ago
xperia64
1c775a3f66
Rotate previous log file to '.old' if it exists
5 years ago
bunnei
655892e84b
hle: service: Stub OLSC Initialize and SetSaveDataBackupSettingEnabled functions.
- Used by Animal Cross: New Horizons v1.6.0 update, minimal stub gets this update working.
5 years ago
Lioncash
38ffaef6eb
common: Enable warnings as errors
Cleans up common so that we can enable warnings as errors.
5 years ago
M&M
c6f9cad218
logging/settings: Increase maximum log size to 100 MB and add extended logging option
The extended logging option is automatically disabled on boot but can be enabled afterwards, allowing the log file to go up to 1 GB during that session.
This commit also fixes a few errors that are present in the general debug menu.
5 years ago
Lioncash
8190a40d18
logging/backend: Make use of designated initializers
Same behavior, less code.
5 years ago
BreadFish64
45e463971b
common/logging: don't use regex for path trimming
6 years ago
ReinUsesLisp
a653f24a00
common/logging: Silence no return value warnings
6 years ago
Zach Hilman
46c3a8d6a3
log: Add logging class for Cheat Engine
This is better than just using something like Common.Filesystem or Common.Memory
7 years ago
Lioncash
eb88e9d088
general: Use deducation guides for std::lock_guard and std::unique_lock
Since C++17, the introduction of deduction guides for locking facilities
means that we no longer need to hardcode the mutex type into the locks
themselves, making it easier to switch mutex types, should it ever be
necessary in the future.
7 years ago
Lioncash
40167af31d
logging/backend: Make time_origin a class variable instead of a local static
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.
7 years ago
Lioncash
e52dbaf998
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
b2636e4b03
Adressed review comments
7 years ago
B3n30
5334e20770
threadsafe_queue: Add WaitIfEmpty and use it in logging
7 years ago
ReinUsesLisp
0c7b5355c3
logging: Add Vulkan backend logging class type
7 years ago
Tobias
da012f0d54
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.
7 years ago
Lioncash
8aa910b315
logging/backend: Add missing services to the log filters
Just a few overlooked services.
7 years ago
Carl Kenner
c7871341fe
logging: Add DebuggerBackend for logging to Visual Studio
7 years ago
David
11a9e90d8d
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
7 years ago
fearlessTobi
1190ea6ddb
Port #4182 from Citra: "Prefix all size_t with std::"
7 years ago
Lioncash
e6a87798b9
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.
7 years ago
Lioncash
5415ccb7da
common/logging: Add missing service log categories
These weren't added when the services were introduced.
7 years ago
Lioncash
705c5b6166
service: Add usb services
Adds basic skeleton for the usb services based off the information provided by Switch Brew.
7 years ago
Lioncash
ed0e62fe9e
service: Add arp services
Adds the basic skeleton of the arp services based off the information
provided by Switch Brew.
7 years ago
Lioncash
6ac24e4e5a
service: Add migration services
Adds the basic skeleton for the mig:usr service based off information
provided by Switch Brew.
8 years ago
Lioncash
4d9067936c
service: Add psc services
Adds the basic skeleton for the psc services based off the information
provided by Switch Brew.
8 years ago
Lioncash
a267a3cc08
service: Add capture services
Adds the basic skeleton for the capture services based off information
provided by Switch Brew.
8 years ago
Lioncash
2635578300
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
b10c0d291f
Remove files that are not used
8 years ago
Lioncash
bdeda001bc
service: Add fgm services
Adds the basic skeleton for the fgm services based off the information
provided by Switch Brew.
8 years ago
Lioncash
e136d94655
service: Add the pcie service
Adds the basic skeleton of the pcie service based off information on
Switch Brew.
8 years ago
Lioncash
cbefbc3c60
service: Add wlan services
Adds the basic skeleton for the wlan services based off the information
on Switch Brew.
8 years ago
Lioncash
82ef74be0b
service: Add btm services
Adds the skeleton for the btm services based off the information on
Switch Brew.
8 years ago
Lioncash
db0eb8968d
service: Add ncm services
Adds the basic skeleton for the ncm services based off information on
Switch Brew.
8 years ago
Lioncash
3d1b71b0a8
service: Add mii services
Adds the skeleton for the mii services based off information provided by
Switch Brew
8 years ago
Lioncash
171f57b364
service: Add nfc services
Adds the skeleton of the nfc service based off the information provided
on Switch Brew.
8 years ago
Lioncash
995ca4edd0
service/lbl: Implement EnableVrMode, DisableVrMode and GetVrMode
Implements these functions according to the information available on
Switch Brew.
8 years ago
Lioncash
6116b53dfb
service: Add ldn services
Adds ldn services based off information provided by Switch Brew.
8 years ago
Lioncash
aa199be9d0
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
943584ff42
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
James Rowe
9e5bc967de
Logging: Dump all logs in the queue on close in debug mode
8 years ago
James Rowe
ada0d38ca9
Logging: Don't lock the queue for the duration of the write
8 years ago
James Rowe
7af1a786d5
Add configurable logging backends
8 years ago