randomgeon/addons/loggie/custom_settings.gd.example
Dan Baker 02b3be35b0 Sets up initial project structure
Initializes the project with core files including:

- Editor configuration (.editorconfig, .gitattributes, .gitignore, .vscode/settings.json)
- Log.gd addon for enhanced debugging
- Loggie addon for advanced logging
- Project assets folder
2025-04-29 17:35:39 +01:00

52 lines
1.9 KiB
Text

class_name CustomLoggieSettings extends LoggieSettings
func load():
# Omit settings from here to have them use their default value instead.
# Otherwise, directly set the value of the setting to your liking.
# Any variable in [LoggieSettings] except `project_settings` is a valid target to alter.
# You could also have them loaded here in some custom way, for example, from a .json or .ini file.
# See the documentation of the [LoggieSettings] class to see all available options and their descriptions.
# This template doesn't contain *all* the available options.
# Example: Customize Loggie preferences.
self.update_check_mode = LoggieEnums.UpdateCheckType.CHECK_AND_SHOW_UPDATER_WINDOW
self.msg_format_mode = LoggieEnums.MsgFormatMode.BBCODE
self.log_level = LoggieEnums.LogLevel.INFO
self.show_loggie_specs = LoggieEnums.ShowLoggieSpecsMode.ESSENTIAL
self.show_system_specs = true
self.enforce_optimal_settings_in_release_build = true
# Example: Customize logging settings.
self.print_errors_to_console = true
self.print_warnings_to_console = true
self.nameless_class_name_proxy = LoggieEnums.NamelessClassExtensionNameProxy.BASE_TYPE
self.timestamps_use_utc = true
# Example: Customize formats.
self.format_info_msg = "{msg}"
self.format_notice_msg = "[b][color=cyan][NOTICE]:[/color][/b] {msg}"
self.format_warning_msg = "[b][color=orange][WARN]:[/color][/b] {msg}"
self.format_error_msg = "[b][color=red][ERROR]:[/color][/b] {msg}"
self.format_debug_msg = "[b][color=pink][DEBUG]:[/color][/b] {msg}"
# Example: Customize boxes.
self.h_separator_symbol = "-"
self.box_characters_mode = LoggieEnums.BoxCharactersMode.COMPATIBLE
self.box_symbols_compatible = {
"top_left" : "-",
"top_right" : "-",
"bottom_left" : "-",
"bottom_right" : "-",
"h_line" : "-",
"v_line" : ":",
}
self.box_symbols_pretty = {
"top_left" : "┌",
"top_right" : "┐",
"bottom_left" : "└",
"bottom_right" : "┘",
"h_line" : "─",
"v_line" : "│",
}