Files
RetroArch/settings/settings_def_logging.h
libretroadmin d284244be4 settings: migrate a batch of extended-row tables to single-source def files
Each table individually performed and gated by
tools/settings_migrate_group.py with the standard battery including
the platform-profile lanes and the integrated enum consolidation
stage; the batch is squashed for review convenience.
2026-07-06 19:12:11 +02:00

29 lines
1.6 KiB
C

/* Single-source definitions: logging group.
* Grammar identical to settings_def_video_sync.h plus S_FLOAT and
* the _NS no-sublabel variants; the descriptor argument span
* matches SDESC_<kind>_ROW; row order is menu display order;
* h2json.py parses these rows for the Crowdin source upload. */
/* Rows marked _H reserve a MENU_ENUM_LABEL_HELP_ enum member;
* outside the enum pass they behave exactly like the base row. */
#ifndef SETTINGS_DEF_ENUM_PASS
#ifndef S_UINT_EX_H
#define S_UINT_EX_H S_UINT_EX
#endif
#endif
S_UINT_EX_H(libretro_log_level, LIBRETRO_LOG_LEVEL,
"libretro_log_level",
DEFAULT_LIBRETRO_LOG_LEVEL, SD_FLAG_NONE, SDESC_RANGE_MINMAX, 0, 0, 3, 1.0, 0, setting_action_ok_uint, setting_get_string_representation_uint_libretro_log_level, NULL, NULL, NULL, NULL, ST_UI_TYPE_UINT_RADIO_BUTTONS,
"Core Logging Level",
"Set log level for cores. If a log level issued by a core is below this value, it is ignored.")
S_BOOL_EX(log_to_file, LOG_TO_FILE,
"log_to_file",
DEFAULT_LOG_TO_FILE, SD_FLAG_NONE, 0, 0, setting_bool_action_left_with_refresh, NULL, NULL, NULL, setting_bool_action_left_with_refresh, setting_bool_action_right_with_refresh, 0,
"Log to File",
"Redirect system event log messages to file. Requires 'Logging Verbosity' to be enabled.")
S_BOOL(log_to_file_timestamp, LOG_TO_FILE_TIMESTAMP,
"log_to_file_timestamp",
DEFAULT_LOG_TO_FILE_TIMESTAMP, SD_FLAG_NONE, 0, 0,
"Timestamp Log Files",
"When logging to file, redirect the output from each RetroArch session to a new timestamped file. If disabled, log is overwritten each time RetroArch is restarted.")