LogManager: implement system module, client api, logging api (#1617)
Some notes:

* Unless `atmosphere!enable_log_manager` is true, Nintendo's log manager will be used instead.
  * This prevents paying memory costs for LM when not enabling logging.
  * To facilitate this, Atmosphere's log manager has a different program id from Nintendo's.
  * `atmosphere!enable_htc` implies `atmosphere!enable_log_manager`.
* LogManager logs to tma, and the SD card (if `lm!enable_sd_card_logging` is true, which it is by default).
* Binary logs are saved to `lm!sd_card_log_output_directory`, which is `atmosphere/binlogs` by default.
1 parent a1fb8a9 commit e9849c74cf956f38c3bb3ef2503f621e3a2dbf59
@SciresM SciresM authored on 12 Sep 2021
GitHub committed on 12 Sep 2021
Showing 94 changed files
View
Makefile
View
config_templates/system_settings.ini
View
libraries/libstratosphere/include/stratosphere.hpp
View
libraries/libstratosphere/include/stratosphere/ams/impl/ams_system_thread_definitions.hpp
View
libraries/libstratosphere/include/stratosphere/diag.hpp 0 → 100644
View
libraries/libstratosphere/include/stratosphere/diag/diag_log.hpp 0 → 100644
View
libraries/libstratosphere/include/stratosphere/diag/diag_log_observer.hpp 0 → 100644
View
libraries/libstratosphere/include/stratosphere/diag/diag_log_types.hpp 0 → 100644
View
libraries/libstratosphere/include/stratosphere/diag/diag_sdk_log.hpp 0 → 100644
View
libraries/libstratosphere/include/stratosphere/diag/impl/diag_impl_build_config.hpp 0 → 100644
View
libraries/libstratosphere/include/stratosphere/diag/impl/diag_impl_log.hpp 0 → 100644
View
libraries/libstratosphere/include/stratosphere/diag/impl/diag_impl_structured_log.hpp 0 → 100644
View
libraries/libstratosphere/include/stratosphere/diag/impl/diag_impl_structured_sdk_log.hpp 0 → 100644
View
libraries/libstratosphere/include/stratosphere/diag/impl/diag_utf8_util.hpp 0 → 100644
View
libraries/libstratosphere/include/stratosphere/lm.hpp 0 → 100644
View
libraries/libstratosphere/include/stratosphere/lm/lm_api.hpp 0 → 100644
View
libraries/libstratosphere/include/stratosphere/lm/lm_log_getter.hpp 0 → 100644
View
libraries/libstratosphere/include/stratosphere/lm/lm_types.hpp 0 → 100644
View
libraries/libstratosphere/include/stratosphere/ncm/ncm_system_content_meta_id.hpp
View
libraries/libstratosphere/include/stratosphere/os/os_waitable_utils.hpp
View
libraries/libstratosphere/include/stratosphere/psc/psc_types.hpp
View
libraries/libstratosphere/include/stratosphere/ro.hpp
View
libraries/libstratosphere/include/stratosphere/ro/impl/ro_ro_exception_info.hpp 0 → 100644
View
libraries/libstratosphere/include/stratosphere/rocrt/rocrt.hpp 0 → 100644
View
libraries/libstratosphere/include/stratosphere/time.hpp
View
libraries/libstratosphere/include/stratosphere/time/impl/util/time_impl_util_api.hpp
View
libraries/libstratosphere/include/stratosphere/time/time_api.hpp
View
libraries/libstratosphere/include/stratosphere/time/time_calendar_time.hpp 0 → 100644
View
libraries/libstratosphere/include/stratosphere/time/time_timezone_api.hpp 0 → 100644
View
libraries/libstratosphere/include/stratosphere/util.hpp
View
libraries/libstratosphere/include/stratosphere/util/util_singleton_traits.hpp 0 → 100644
View
libraries/libstratosphere/source/boot2/boot2_api.cpp
View
libraries/libstratosphere/source/diag/diag_log.cpp 0 → 100644
View
libraries/libstratosphere/source/diag/diag_log_impl.hpp 0 → 100644
View
libraries/libstratosphere/source/diag/diag_log_observer.cpp 0 → 100644
View
libraries/libstratosphere/source/diag/impl/diag_module_impl.os.horizon.cpp 0 → 100644
View
libraries/libstratosphere/source/diag/impl/diag_observer_manager.hpp 0 → 100644
View
libraries/libstratosphere/source/diag/impl/diag_print_debug_string.hpp 0 → 100644
View
libraries/libstratosphere/source/diag/impl/diag_print_debug_string.os.horizon.cpp 0 → 100644
View
libraries/libstratosphere/source/diag/impl/diag_process.os.horizon.cpp 0 → 100644
View
libraries/libstratosphere/source/diag/impl/diag_utf8_util.cpp 0 → 100644
View
libraries/libstratosphere/source/erpt/srv/erpt_srv_service.cpp
View
libraries/libstratosphere/source/htc/server/htc_power_state_control.cpp
View
libraries/libstratosphere/source/lm/impl/lm_log_data_chunk.hpp 0 → 100644
View
libraries/libstratosphere/source/lm/impl/lm_log_packet_header.hpp 0 → 100644
View
libraries/libstratosphere/source/lm/impl/lm_log_packet_transmitter.hpp 0 → 100644
View
libraries/libstratosphere/source/lm/impl/lm_log_packet_transmitter_base.cpp 0 → 100644
View
libraries/libstratosphere/source/lm/impl/lm_log_packet_transmitter_base.hpp 0 → 100644
View
libraries/libstratosphere/source/lm/lm_api.cpp 0 → 100644
View
libraries/libstratosphere/source/lm/lm_remote_log_service.cpp 0 → 100644
View
libraries/libstratosphere/source/lm/lm_remote_log_service.hpp 0 → 100644
View
libraries/libstratosphere/source/lm/lm_service_name.hpp 0 → 100644
View
libraries/libstratosphere/source/lm/sf/lm_i_log_getter.hpp 0 → 100644
View
libraries/libstratosphere/source/lm/sf/lm_i_log_service.hpp 0 → 100644
View
libraries/libstratosphere/source/lm/srv/lm_custom_sink_buffer.cpp 0 → 100644
View
libraries/libstratosphere/source/lm/srv/lm_custom_sink_buffer.hpp 0 → 100644
View
libraries/libstratosphere/source/lm/srv/lm_event_log_transmitter.cpp 0 → 100644
View
libraries/libstratosphere/source/lm/srv/lm_event_log_transmitter.hpp 0 → 100644
View
libraries/libstratosphere/source/lm/srv/lm_flush_thread.cpp 0 → 100644
View
libraries/libstratosphere/source/lm/srv/lm_ipc_server.cpp 0 → 100644
View
libraries/libstratosphere/source/lm/srv/lm_log_buffer.cpp 0 → 100644
View
libraries/libstratosphere/source/lm/srv/lm_log_buffer.hpp 0 → 100644
View
libraries/libstratosphere/source/lm/srv/lm_log_getter.cpp 0 → 100644
View
libraries/libstratosphere/source/lm/srv/lm_log_getter.hpp 0 → 100644
View
libraries/libstratosphere/source/lm/srv/lm_log_getter_impl.cpp 0 → 100644
View
libraries/libstratosphere/source/lm/srv/lm_log_getter_impl.hpp 0 → 100644
View
libraries/libstratosphere/source/lm/srv/lm_log_packet_parser.cpp 0 → 100644
View
libraries/libstratosphere/source/lm/srv/lm_log_packet_parser.hpp 0 → 100644
View
libraries/libstratosphere/source/lm/srv/lm_log_server_proxy.cpp 0 → 100644
View
libraries/libstratosphere/source/lm/srv/lm_log_server_proxy.hpp 0 → 100644
View
libraries/libstratosphere/source/lm/srv/lm_log_service_impl.cpp 0 → 100644
View
libraries/libstratosphere/source/lm/srv/lm_log_service_impl.hpp 0 → 100644
View
libraries/libstratosphere/source/lm/srv/lm_logger_impl.cpp 0 → 100644
View
libraries/libstratosphere/source/lm/srv/lm_logger_impl.hpp 0 → 100644
View
libraries/libstratosphere/source/lm/srv/lm_sd_card_logger.cpp 0 → 100644
View
libraries/libstratosphere/source/lm/srv/lm_sd_card_logger.hpp 0 → 100644
View
libraries/libstratosphere/source/lm/srv/lm_time_util.cpp 0 → 100644
View
libraries/libstratosphere/source/lm/srv/lm_time_util.hpp 0 → 100644
View
libraries/libstratosphere/source/ro/impl/ro_ro_exception_info.cpp 0 → 100644
View
libraries/libstratosphere/source/time/impl/util/time_impl_util_api.cpp
View
libraries/libstratosphere/source/time/time_api.cpp
View
libraries/libstratosphere/source/time/time_calendar_time.cpp 0 → 100644
View
libraries/libstratosphere/source/time/time_timezone_api.cpp 0 → 100644
View
libraries/libvapours/include/vapours/util.hpp
View
libraries/libvapours/include/vapours/util/util_format_string.hpp
View
libraries/libvapours/include/vapours/util/util_utf8_string_util.hpp 0 → 100644
View
libraries/libvapours/source/util/util_format_string.cpp
View
libraries/libvapours/source/util/util_utf8_string_util.cpp 0 → 100644
View
stratosphere/LogManager/LogManager.json 0 → 100644
View
stratosphere/LogManager/Makefile 0 → 100644
View
stratosphere/LogManager/source/lm_main.cpp 0 → 100644
View
stratosphere/Makefile
View
stratosphere/ams_mitm/source/set_mitm/settings_sd_kvs.cpp
View
stratosphere/loader/source/ldr_process_creation.cpp