summaryrefslogtreecommitdiffstats
path: root/src/common/logging/backend.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* logging/backend: Make use of designated initializersLioncash2020-08-031-11/+11
| | | | Same behavior, less code.
* common/logging: don't use regex for path trimmingBreadFish642020-01-231-1/+1
|
* common/logging: Silence no return value warningsReinUsesLisp2019-11-151-2/+6
|
* log: Add logging class for Cheat EngineZach Hilman2019-09-221-0/+1
| | | This is better than just using something like Common.Filesystem or Common.Memory
* general: Use deducation guides for std::lock_guard and std::unique_lockLioncash2019-04-011-3/+3
| | | | | | | 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.
* logging/backend: Make time_origin a class variable instead of a local staticLioncash2019-03-021-2/+1
| | | | | | | | | 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.
* logging/backend: Move CreateEntry into the Impl classLioncash2019-03-021-25/+26
| | | | | This function is only ever used within this source file and makes it easier to remove static state in the following change.
* Adressed review commentsB3n302019-02-151-1/+2
|
* threadsafe_queue: Add WaitIfEmpty and use it in loggingB3n302019-02-151-13/+7
|
* logging: Add Vulkan backend logging class typeReinUsesLisp2019-02-121-0/+1
|
* Backport review comment from citra-emu/citra#4418Tobias2018-12-071-2/+2
| | | | 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.
* Merge pull request #1441 from CarlKenner/DebuggerLogbunnei2018-11-051-2/+9
|\ | | | | logging: Add DebuggerBackend for logging to Visual Studio
| * logging: Add DebuggerBackend for logging to Visual StudioCarl Kenner2018-10-071-2/+9
| |
* | logging/backend: Add missing services to the log filtersLioncash2018-10-241-0/+3
|/ | | | Just a few overlooked services.
* Stubbed IRS (#1349)David2018-09-241-0/+1
| | | | | | | | | | * 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
* Port #4182 from Citra: "Prefix all size_t with std::"fearlessTobi2018-09-151-1/+1
|
* logging/backend: Use const reference to refer to log filterLioncash2018-08-141-2/+3
| | | | | | 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.
* common/logging: Add missing service log categoriesLioncash2018-08-081-0/+8
| | | | These weren't added when the services were introduced.
* service: Add usb servicesLioncash2018-08-071-0/+1
| | | | Adds basic skeleton for the usb services based off the information provided by Switch Brew.
* service: Add arp servicesLioncash2018-08-051-0/+1
| | | | | Adds the basic skeleton of the arp services based off the information provided by Switch Brew.
* Merge pull request #849 from DarkLordZach/xcibunnei2018-08-041-0/+1
|\ | | | | XCI and Encrypted NCA Support
| * Remove files that are not usedZach Hilman2018-08-011-0/+1
| |
* | Merge pull request #898 from lioncash/migbunnei2018-08-031-0/+1
|\ \ | | | | | | service: Add migration services
| * | service: Add migration servicesLioncash2018-08-021-0/+1
| | | | | | | | | | | | | | | Adds the basic skeleton for the mig:usr service based off information provided by Switch Brew.
* | | service: Add psc servicesLioncash2018-08-021-0/+1
|/ / | | | | | | | | Adds the basic skeleton for the psc services based off the information provided by Switch Brew.
* | Merge pull request #888 from lioncash/capsbunnei2018-08-021-0/+1
|\ \ | | | | | | service: Add capture services
| * | service: Add capture servicesLioncash2018-08-011-0/+1
| |/ | | | | | | | | Adds the basic skeleton for the capture services based off information provided by Switch Brew.
* / service: Add bpc and pcv servicesLioncash2018-08-011-0/+2
|/ | | | | Adds the basic skeleton for the remaining pcv-related services based off information on Switch Brew.
* Merge pull request #875 from lioncash/fgmbunnei2018-07-311-0/+1
|\ | | | | service: Add fgm services
| * service: Add fgm servicesLioncash2018-07-311-0/+1
| | | | | | | | | | Adds the basic skeleton for the fgm services based off the information provided by Switch Brew.
* | service: Add the pcie serviceLioncash2018-07-311-0/+1
|/ | | | | Adds the basic skeleton of the pcie service based off information on Switch Brew.
* Merge pull request #857 from lioncash/wlanbunnei2018-07-301-0/+1
|\ | | | | service: Add wlan services
| * service: Add wlan servicesLioncash2018-07-291-0/+1
| | | | | | | | | | Adds the basic skeleton for the wlan services based off the information on Switch Brew.
* | service: Add btm servicesLioncash2018-07-291-0/+1
|/ | | | | Adds the skeleton for the btm services based off the information on Switch Brew.
* Merge pull request #847 from lioncash/ncmbunnei2018-07-281-0/+1
|\ | | | | service: Add ncm services
| * service: Add ncm servicesLioncash2018-07-271-0/+1
| | | | | | | | | | Adds the basic skeleton for the ncm services based off information on Switch Brew.
* | Merge pull request #846 from lioncash/miibunnei2018-07-281-0/+1
|\ \ | |/ |/| service: Add mii services
| * service: Add mii servicesLioncash2018-07-271-0/+1
| | | | | | | | | | Adds the skeleton for the mii services based off information provided by Switch Brew
* | Merge pull request #845 from lioncash/nfcbunnei2018-07-271-0/+1
|\ \ | | | | | | service: Add nfc services
| * | service: Add nfc servicesLioncash2018-07-271-0/+1
| |/ | | | | | | | | Adds the skeleton of the nfc service based off the information provided on Switch Brew.
* / service/lbl: Implement EnableVrMode, DisableVrMode and GetVrModeLioncash2018-07-271-0/+1
|/ | | | | Implements these functions according to the information available on Switch Brew.
* service: Add ldn servicesLioncash2018-07-261-0/+1
| | | | Adds ldn services based off information provided by Switch Brew.
* logging/backend: Add missing standard includesLioncash2018-07-201-2/+3
| | | | | A few inclusions were being satisfied indirectly. To prevent breakages in the future, include these directly.
* logging/backend: Use std::string_view in RemoveBackend() and GetBackend()Lioncash2018-07-201-10/+10
| | | | | | 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.
* Logging: Dump all logs in the queue on close in debug modeJames Rowe2018-07-151-1/+2
|
* Logging: Don't lock the queue for the duration of the writeJames Rowe2018-07-141-3/+5
|
* Add configurable logging backendsJames Rowe2018-07-031-8/+149
|
* Service/MM: add service and stub some functionsmailwl2018-06-051-0/+1
|
* Service/BCAT: add module and servicesmailwl2018-05-281-0/+1
|
* log: Remove old logging macros and functionsLioncash2018-04-271-19/+1
| | | | Now that the old macros are no longer used, we can remove all functionality related to them.
* Added PREPO to logging backend, Removed comments from SaveReportWithUserDavid Marcec2018-04-261-0/+1
|
* Update fmtlib to fix msvc warningsJames Rowe2018-04-061-2/+3
| | | | | | 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
* logging: Change FmtLogMessage to use variadic template instead of FMT_VARIADICDaniel Lim Wee Soong2018-04-031-3/+3
| | | | Due to premature merging of #262 I think the build may be failing right now. Should merge this ASAP to fix it.
* Merge pull request #262 from daniellimws/fmtlib-macrosbunnei2018-04-031-14/+22
|\ | | | | Logging: Add fmtlib-based macros
| * Logging: Create logging macros based on fmtlibDaniel Lim Wee Soong2018-03-221-14/+22
| | | | | | | | | | | | | | | | | | 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.
* | service: Add NFP module interface.bunnei2018-03-301-0/+1
| | | | | | | | | | | | service: Initialize NFP service. Log: Add NFP service as a log subtype.
* | Service/SSL: add ssl servicemailwl2018-03-231-0/+1
| |
* | Service/spl: add module and servicesmailwl2018-03-221-0/+1
| |
* | Service: add fatal:u, fatal:p servicesmailwl2018-03-201-0/+1
|/
* Merge pull request #206 from mailwl/aoc-listaddoncontentbunnei2018-02-201-0/+1
|\ | | | | Service/AOC: stub ListAddOnContent function
| * Service/AOC: stub ListAddOnContent functionmailwl2018-02-201-0/+1
| |
* | logging: Add category for Friend service.bunnei2018-02-191-0/+1
|/
* log: Add logging category for NS services.bunnei2018-02-151-0/+1
|
* logger: Add Time service logging category.bunnei2018-02-051-0/+1
|
* logger: Add SET service logging category.bunnei2018-02-051-5/+3
|
* logger: Add PCTL service logging category.bunnei2018-02-051-0/+1
|
* logger: Add LM service logging category.bunnei2018-02-051-0/+1
|
* logger: Add APM service logging category.bunnei2018-02-051-0/+1
|
* logger: Add NIFM service logging category.bunnei2018-02-051-0/+1
|
* logger: Add VI service logging category.bunnei2018-02-051-0/+1
|
* logger: Add AM service logging category.bunnei2018-02-041-0/+1
|
* logger: Add "account" service logging category.bunnei2018-02-041-0/+1
|
* audout:u OpenAudioOut and IAudioOut (#138)st4rk2018-01-251-0/+1
| | | | | | | | | | | | | | | | | | | | | | * Updated the audout:u and IAudioOut, now it might work with RetroArch without trigger an assert, however it's not the ideal implementation * Updated the audout:u and IAudioOut, now it might work with RetroArch without trigger an assert, however it's not the ideal implementation * audout:u OpenAudioOut implementation and IAudioOut cmd 1,2,3,4,5 implementation * using an enum for audio_out_state as well as changing its initialize to member initializer list * Minor fixes, added Service_Audio for LOG_*, changed PcmFormat enum to EnumClass * Minor fixes, added Service_Audio for LOG_*, changed PcmFormat enum to EnumClass * added missing Audio loggin subclass, minor fixes, clang comment breakline * Solving backend logging conflict * minor fix * Fixed duplicated Service NVDRV in backend.cpp, my bad
* logging: add missing NVDRV subclass to macro listRozlette2018-01-241-0/+1
|
* Format: Run the new clang format on everythingJames Rowe2018-01-211-1/+1
|
* loggin: Add IPC logging category.bunnei2018-01-171-1/+2
|
* logging: Rename category "Core_ARM11" to "Core_ARM".bunnei2017-10-231-1/+1
|
* hle: Initial implementation of NX service framework and IPC.bunnei2017-10-151-1/+1
|
* hle: Remove a large amount of 3ds-specific service code.bunnei2017-10-101-21/+0
|
* logging: Add WebService as a log cateogry.bunnei2017-07-101-1/+2
|
* Implement basic virtual Room support based on enet (#2803)B3n302017-07-071-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Added support for network with ENet lib, connecting is possible, but data can't be sent, yet. * fixup! Added support for network with ENet lib, * fixup! CLang * fixup! Added support for network with ENet lib, * fixup! Added support for network with ENet lib, * fixup! Clang format * More fixups! * Moved ENetHost* and ENetPeer* into pimpl classes * fixup! Moved ENetHost* and ENetPeer* into pimpl classes * fixup! Clang again * fixup! Moved ENetHost* and ENetPeer* into pimpl classes * fixup! Moved ENetHost* and ENetPeer* into pimpl classes * fixup! Moved ENetHost* and ENetPeer* into pimpl classes
* Input: add device and factory templatewwylele2017-03-011-0/+1
|
* Merge pull request #2569 from wwylele/wrap-unwrapbunnei2017-02-251-0/+1
|\ | | | | APT: implemented Wrap and Unwrap
| * HW: add AES engine & implement AES-CCMwwylele2017-02-211-0/+1
| |
* | applied the change suggested by @wwylelenoah the goodra2017-02-141-0/+1
|/
* Service/NFC: stub GetTagInRangeEventmailwl2016-12-301-0/+1
| | | | Fix Fatal Error in Mini-Mario & Friends - amiibo Challenge
* csnd:SND reformat source codemailwl2016-12-121-0/+1
|
* MIC_U: Stub service funcionsmailwl2016-11-251-0/+1
|
* Update the stub code of BOSSJamePeng2016-10-021-0/+1
|
* Use negative priorities to avoid special-casing the self-includeYuri Kunde Schlesner2016-09-211-1/+1
|
* Remove empty newlines in #include blocks.Emmanuel Gil Peyrot2016-09-211-2/+1
| | | | | | | 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.Emmanuel Gil Peyrot2016-09-181-68/+71
|
* Remove superfluous std::move in return std::move(local_var)scurest2016-06-251-1/+1
|
* AudioCore: SDL2 SinkMerryMage2016-05-071-0/+1
|
* Merge pull request #1435 from mailwl/frd_ubunnei2016-04-061-0/+1
|\ | | | | frd:u: Initial stub some functions
| * frd:u: Initial stub some functionsmailwl2016-03-271-0/+1
| |
* | Merge pull request #1616 from exhalatio/dlp_dummybunnei2016-04-031-0/+1
|\ \ | | | | | | Dummy implementation dlp:SRVR Service.
| * | Dummy implementation dlp:SRVR Service.exhalatio2016-04-021-0/+1
| |/
* / cecd:u: stub GetCecInfoEventHandle, GetChangeStateEventHandlemailwl2016-03-311-0/+1
|/
* Reorganize the ndm service path for dummy implement functionJamePeng2016-03-141-0/+1
| | | | | | SuspendDaemons , ResumeDaemons , OverrideDefaultDaemons The NDM file move to /core/hle/service/ndm/ now!
* Initial implementation ir:usermailwl2016-02-261-0/+1
|
* AudioCore: Skeleton ImplementationMerryMage2016-02-211-0/+2
| | | | | | | | | This commit: * Adds a new subproject, audio_core. * Defines structures that exist in DSP shared memory. * Hooks up various other parts of the emulator into audio core. This sets the foundation for a later HLE DSP implementation.
* Services/Cam: Added new log type and camera enums from 3dbrew.Subv2015-11-231-0/+1
| | | | | Followup to #1102 Original author @mailwl
* Implement gdbstubpolaris-2015-10-041-0/+1
|
* Handle invalid `Log::Class`Benjamin Barenblat2015-08-151-1/+2
| | | | | | Add a case of `Log::Class::Count` to the switch statement that dispatches on `Log::Class`. The case simply calls the `UNREACHABLE` macro.
* Use UNREACHABLE macro for impossible cases in previous commitBenjamin Barenblat2015-08-031-2/+1
| | | | Use the UNREACHABLE macro instead of `ASSERT(false, ...);`.
* Handle invalid `Log::Level::Count`Benjamin Barenblat2015-08-021-1/+4
| | | | | | 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.
* Services: Continue separation of services into their own folderspurpasmart962015-06-121-0/+1
|
* Service::Y2R: Support for grayscale decoding of specific formatsYuri Kunde Schlesner2015-05-221-0/+1
| | | | | | | | | | | | Implements unrotated planar YUV 4:2:0 -> RGB24 conversions in Y2R. Currently only the Y (luma) channel is used, so the results don't contain color. This will be added in a later PR at some point. This is enough to get all currently know Moflex videos to decode. (Some don't display on-screen due to seemingly unrelated reasons.) Thanks to @archshift for doing the initial implementation which I cleaned up and then fixed the 8x8 block mode.
* Common: Remove async loggingYuri Kunde Schlesner2015-05-121-47/+9
| | | | | | | | | | | 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.)
* Services: Stubs and minor changespurpasmart962015-04-031-0/+2
|
* Merge pull request #629 from archshift/lcdfbbunnei2015-03-101-0/+1
|\ | | | | Implement SetLcdForceBlack and add implementation for color filling in the GPU code
| * Added LCD registers, and implementation for color filling in OGL code.archshift2015-03-091-0/+1
| |
* | Logging: check for filter before sending to the queue, to skip all heavy formatting on the other thread.Emmanuel Gil Peyrot2015-03-061-0/+9
|/
* Added information reporting from ThrowFatalErrorarchshift2015-02-221-0/+1
| | | | This was RE'd from the errdisp applet.
* backend: Add logging subentry for ldrLioncash2015-02-131-0/+1
| | | | Fixes an assertion upon executing citra in debug mode.
* Asserts: break/crash program, fit to style guide; log.h->assert.harchshift2015-02-111-2/+2
| | | | | | | Involves making asserts use printf instead of the log functions (log functions are asynchronous and, as such, the log won't be printed in time) As such, the log type argument was removed (printf obviously can't use it, and it's made obsolete by the file and line printing) Also removed some GEKKO cruft.
* CoreTiming: Ported the CoreTiming namespace from PPSSPPSubv2015-01-071-0/+1
| | | | | | Implemented the required calls to make it work. CoreTiming: Added a new logging class Core_Timing.
* SOC_U: Preliminary implementation of sockets.Subv2014-12-311-0/+1
| | | | | | | | | | | | | Stubbed CreateMemoryBlock Using Berkeley sockets, and Winsock2.2 on Windows. So far ftpony creates the socket and accepts incoming connections SOC_U: Renamed functions to maintain consistency Also prevents possible scope errors / conflicts with the actual Berkeley socket functions SOCU: Close all the opened sockets when cleaning up SOCU
* License changepurpasmart962014-12-211-1/+1
|
* New logging systemYuri Kunde Schlesner2014-12-131-0/+151