summaryrefslogtreecommitdiff
path: root/src/common/logging (follow)
Commit message (Collapse)AuthorAgeFilesLines
* service: ptm: Rewrite PSM and add TSGravatar german772022-06-282-2/+2
|
* general: Convert source file copyright comments over to SPDXGravatar Morph2022-04-233-9/+6
| | | | | This formats all copyright comments according to SPDX formatting guidelines. Additionally, this resolves the remaining GPLv2 only licensed files by relicensing them to GPLv2.0-or-later.
* service: jit: stub JIT serviceGravatar Liam2022-04-062-0/+2
|
* common: logging: Add a logger for NVFlinger.Gravatar bunnei2022-03-242-0/+2
|
* common: Reduce unused includesGravatar ameerj2022-03-192-3/+0
|
* common: Reduce unused includesGravatar ameerj2022-03-193-4/+0
|
* backend: Ensure backend_thread is destructed before message_queueGravatar Merry2022-03-101-1/+1
| | | | Ensures that stop_token signals that stop has been requested before destruction of conditional_variable
* logging: Convert `backend_thread` into an `std::jthread`Gravatar Wunkolo2022-02-271-13/+5
| | | | | | Was getting an unhandled `invalid_argument` [exception](https://en.cppreference.com/w/cpp/thread/thread/join) during shutdown on my linux machine. This removes the need for a `StopBackendThread` function entirely since `jthread` [automatically handles both checking if the thread is joinable and stopping the token before attempting to join](https://en.cppreference.com/w/cpp/thread/jthread/~jthread) in the case that `StartBackendThread` was never called.
* service/mnpp: Stub mnpp_appGravatar Narr the Reg2022-02-102-0/+2
| | | | Used in Super Nintendo Entertainment System™ - Nintendo Switch Online
* logging/log.h: move enum class formatter to a separate file ...Gravatar liushuyu2022-01-092-15/+24
| | | | ... to common/logging/formatter.h
* logging/log: use `underlying_type` instead of hardcoding typesGravatar liushuyu2022-01-081-2/+4
|
* logging: adapt to changes in fmt 8.1Gravatar liushuyu2022-01-081-1/+14
|
* service/notif: Add notif:a and stub ListAlarmSettings,InitializeGravatar german772021-12-062-0/+2
| | | | Used by ring fit adventure 1.2.0
* Refactor Logging ImplGravatar Levi Behunin2021-11-013-28/+39
| | | | | | | Loop on stop_token and remove final_entry in Entry. Move Backend thread out of Impl Constructor to its own function. Add Start function for backend thread. Use stop token in PopWait and check if entry filename is nullptr before logging.
* common/logging: Reduce scope of fmt includeGravatar ameerj2021-10-011-1/+1
|
* common/logging: Move Log::Entry declaration to a separate headerGravatar ameerj2021-10-015-17/+36
| | | | This reduces the load of requiring to include std::chrono in all files which include log.h
* common/logging: Add missing includeGravatar german772021-09-011-0/+1
|
* Merge pull request #6927 from german77/ngctGravatar Morph2021-08-282-0/+2
|\ | | | | ngct: Stub NGCT:U service
| * ngct: Stub NGCT:U serviceGravatar german772021-08-272-0/+2
| |
* | Revert "logging: Display backtrace on crash"Gravatar Morph2021-08-271-111/+1
|/
* Merge pull request #6870 from yzct12345/trace-back-stack-back-stack-backGravatar bunnei2021-08-261-1/+111
|\ | | | | logging: Display backtrace on crash
| * logging: Display backtrace on crashGravatar yzct123452021-08-131-1/+111
| | | | | | | | | | | | | | This implements backtraces so we don't have to tell users how to use gdb anymore. This prints a backtrace after abort or segfault is detected. It also fixes the log getting cut off with the last line containing only a bracket. This change lets us know what caused a crash not just what happened the few seconds before it. I only know how to add support for Linux with GCC. Also this doesn't work outside of C/C++ such as in dynarmic or certain parts of graphics drivers. The good thing is that it'll try and just crash again but the stack frames are still there so the core dump will work just like before.
* | logging: Fix log filter during initializationGravatar ameerj2021-08-241-4/+5
|/ | | | | | The log filter was being ignored on initialization due to the logging instance being initialized before the config instance, so the log filter was set to its default value. This fixes that oversight, along with using descriptive exceptions instead of abort() calls.
* logging: Simplify and make thread-safeGravatar yzct123452021-08-132-245/+218
| | | | | | | | | This simplifies the logging system. This also fixes some lost messages on startup. The simplification is simple. I removed unused functions and moved most things in the .h to the .cpp. I replaced the unnecessary linked list with its contents laid out as three member variables. Anything that went through the linked list now directly accesses the backends. Generic functions are replaced with those for each specific use case and there aren't many. This change increases coupling but we gain back more KISS and encapsulation. With those changes it was easy to make it thread-safe. I just removed the mutex and turned a boolean atomic. I was planning to use this thread-safety in my next PR about stacktraces. It was actually async-signal-safety at first but I ended up using a different approach. Anyway getting rid of the linked list is important for that because have the list of backends constantly changing complicates things.
* shader: Add loggingGravatar ReinUsesLisp2021-07-222-0/+8
|
* common: logging: backend: Close the file after exceeding the write limitGravatar Morph2021-07-061-8/+11
| | | | There's no point in keeping the file open after the write limit is exceeded. This allows the file to be committed to the disk shortly after it is closed and avoids redundantly checking whether or not the write limit is exceeded.
* Merge pull request #6519 from Wunkolo/mem-size-literalGravatar bunnei2021-06-241-4/+7
|\ | | | | common: Replace common_sizes into user-literals
| * common: Replace common_sizes into user-literalsGravatar Wunkolo2021-06-241-4/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | Removes common_sizes.h in favor of having `_KiB`, `_MiB`, `_GiB`, etc user-literals within literals.h. To keep the global namespace clean, users will have to use: ``` using namespace Common::Literals; ``` to access these literals.
* | general: Add missing #pragma once directivesGravatar Morph2021-06-241-0/+2
|/
* common: fs: file: Remove [[nodiscard]] attribute from FlushGravatar Morph2021-06-221-1/+1
| | | | Similarly, Flush() is typically called to attempt to flush a file into the disk. In the one case where this is used, we do not care whether the flush has succeeded or not, making [[nodiscard]] unnecessary.
* common: fs: Remove [[nodiscard]] attribute on Remove* functionsGravatar Morph2021-06-221-1/+1
| | | | | | There are a lot of scenarios where we don't particularly care whether or not the removal operation and just simply attempt a removal. As such, removing the [[nodiscard]] attribute is best for these functions.
* common: logging: Restructure backend codeGravatar Morph2021-06-137-278/+287
|
* common: logging: backend: Wrap IOFile in a unique_ptrGravatar Morph2021-06-132-6/+27
| | | | Allows us to forward declare Common::FS::IOFile.
* common: fs: Rework the Common Filesystem interface to make use of ↵Gravatar Morph2021-05-252-17/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | std::filesystem (#6270) * common: fs: fs_types: Create filesystem types Contains various filesystem types used by the Common::FS library * common: fs: fs_util: Add std::string to std::u8string conversion utility * common: fs: path_util: Add utlity functions for paths Contains various utility functions for getting or manipulating filesystem paths used by the Common::FS library * common: fs: file: Rewrite the IOFile implementation * common: fs: Reimplement Common::FS library using std::filesystem * common: fs: fs_paths: Add fs_paths to replace common_paths * common: fs: path_util: Add the rest of the path functions * common: Remove the previous Common::FS implementation * general: Remove unused fs includes * string_util: Remove unused function and include * nvidia_flags: Migrate to the new Common::FS library * settings: Migrate to the new Common::FS library * logging: backend: Migrate to the new Common::FS library * core: Migrate to the new Common::FS library * perf_stats: Migrate to the new Common::FS library * reporter: Migrate to the new Common::FS library * telemetry_session: Migrate to the new Common::FS library * key_manager: Migrate to the new Common::FS library * bis_factory: Migrate to the new Common::FS library * registered_cache: Migrate to the new Common::FS library * xts_archive: Migrate to the new Common::FS library * service: acc: Migrate to the new Common::FS library * applets/profile: Migrate to the new Common::FS library * applets/web: Migrate to the new Common::FS library * service: filesystem: Migrate to the new Common::FS library * loader: Migrate to the new Common::FS library * gl_shader_disk_cache: Migrate to the new Common::FS library * nsight_aftermath_tracker: Migrate to the new Common::FS library * vulkan_library: Migrate to the new Common::FS library * configure_debug: Migrate to the new Common::FS library * game_list_worker: Migrate to the new Common::FS library * config: Migrate to the new Common::FS library * configure_filesystem: Migrate to the new Common::FS library * configure_per_game_addons: Migrate to the new Common::FS library * configure_profile_manager: Migrate to the new Common::FS library * configure_ui: Migrate to the new Common::FS library * input_profiles: Migrate to the new Common::FS library * yuzu_cmd: config: Migrate to the new Common::FS library * yuzu_cmd: Migrate to the new Common::FS library * vfs_real: Migrate to the new Common::FS library * vfs: Migrate to the new Common::FS library * vfs_libzip: Migrate to the new Common::FS library * service: bcat: Migrate to the new Common::FS library * yuzu: main: Migrate to the new Common::FS library * vfs_real: Delete the contents of an existing file in CreateFile Current usages of CreateFile expect to delete the contents of an existing file, retain this behavior for now. * input_profiles: Don't iterate the input profile dir if it does not exist Silences an error produced in the log if the directory does not exist. * game_list_worker: Skip parsing file if the returned VfsFile is nullptr Prevents crashes in GetLoader when the virtual file is nullptr * common: fs: Validate paths for path length * service: filesystem: Open the mod load directory as read only
* log/backend: Use in-class initializer for FileBackendGravatar Lioncash2021-04-202-6/+8
| | | | We can also avoid redundant constructions of the same string repeatedly.
* log/backend: Make use of erase_ifGravatar Lioncash2021-04-201-4/+4
| | | | Same behavior, but less verbose.
* Merge pull request #6199 from lioncash/log-nsGravatar bunnei2021-04-147-35/+44
|\ | | | | common/log: Move Log namespace into the Common namespace
| * log/backend: Correct order of const in copy constructorGravatar Lioncash2021-04-141-2/+5
| | | | | | | | | | Follows our predominant coding style. Also explicitly specifies the move constructor/assignment operator as well.
| * common/log: Move Log namespace into the Common namespaceGravatar Lioncash2021-04-147-33/+39
| | | | | | | | | | Forgot to move this over when I moved the rest of the source files with lacking namespaces over.
* | common: Move settings to common from core.Gravatar bunnei2021-04-141-1/+1
|/ | | | - Removes a dependency on core and input_common from common.
* bgtc: Update to 12.x and implement OpenTaskServiceGravatar Morph2021-04-092-0/+2
|
* Address review commentsGravatar FearlessTobi2021-01-041-5/+5
|
* Delete the old log file before rotating (#5675)Gravatar xperia642021-01-041-0/+3
|
* Fix the old log file to work with the log parser.Gravatar bunnei2021-01-031-1/+1
|
* Rotate previous log file to '.old' if it existsGravatar xperia642021-01-031-4/+9
|
* Merge pull request #4451 from slashiee/extended-loggingGravatar bunnei2020-11-231-2/+12
|\ | | | | logging/settings: Increase maximum log size to 100 MB and add extended logging option
| * logging/settings: Increase maximum log size to 100 MB and add extended ↵Gravatar M&M2020-08-241-2/+12
| | | | | | | | | | | | | | 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.
* | hle: service: Stub OLSC Initialize and SetSaveDataBackupSettingEnabled ↵Gravatar bunnei2020-11-192-0/+2
| | | | | | | | | | | | functions. - Used by Animal Cross: New Horizons v1.6.0 update, minimal stub gets this update working.
* | common: Enable warnings as errorsGravatar Lioncash2020-11-021-2/+0
|/ | | | Cleans up common so that we can enable warnings as errors.
* common/fileutil: Convert namespace to Common::FSGravatar Lioncash2020-08-161-1/+1
| | | | | | | | | | | | Migrates a remaining common file over to the Common namespace, making it consistent with the rest of common files. This also allows for high-traffic FS related code to alias the filesystem function namespace as namespace FS = Common::FS; for more concise typing.