refactor: extract logging/debug refactor from PR #1292#1308
Merged
Conversation
…bulk print to Logger changes Agent-Logs-Url: https://github.com/derfloh205/CraftSim/sessions/2eca3faa-5ba2-41e7-b37b-9637c6a38250 Co-authored-by: derfloh205 <9341090+derfloh205@users.noreply.github.com>
…ion issues in restored files Agent-Logs-Url: https://github.com/derfloh205/CraftSim/sessions/2eca3faa-5ba2-41e7-b37b-9637c6a38250 Co-authored-by: derfloh205 <9341090+derfloh205@users.noreply.github.com>
… Logger consistently Agent-Logs-Url: https://github.com/derfloh205/CraftSim/sessions/2eca3faa-5ba2-41e7-b37b-9637c6a38250 Co-authored-by: derfloh205 <9341090+derfloh205@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
derfloh205
April 17, 2026 11:50
View session
derfloh205
approved these changes
Apr 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Extracts only the logging/debug refactor changes from PR #1292 (
refactor/EventBasedModules) into an independent PR branched frommain. This separates the logging system upgrade from the work-in-progress module loading process refactor.Changes
LibLog-1.0 Integration
embeds.xml,Init/GLibs.lua, already in.pkgmeta)Debug Module Restructuring
Modules/Debug/Debug.lua→Debug/Debug.lua(top-level, since Debug is infrastructure, not a module)Modules/Debug/UI.lua→Debug/UI.luaCraftSim.tocto reflect new file pathsLogging Migration (85+ files)
CraftSim.DEBUG:RegisterDebugID("X")/print()pattern withCraftSim.DEBUG:RegisterLogger("X")/Logger:LogDebug()pattern across all source filesRegisterDebugID/RegisterLoggercalls from functions, using file-level Logger consistentlyRegisterDebugIDbackwards-compatibility shim inDebug/Debug.luaDB and Options
DEBUG_IDSoption →DEBUG_MINIMUM_LOG_LEVEL(defaults toERRORlevel)M_16_17_Remove_DebugID_SavedVariableto clean up old saved variableUtil/Const.luadefaultsWhat is NOT included (stays in PR #1292)
RegisterModule,MODULES_ENABLED)FRAMESenum removal fromUtil/Const.luaCraftSim.Modulebase class)UpdateUI/UpdateDisplay→Updatemethod renamesVisibleByContextadditionsCRAFTSIM_OPEN_RECIPE_INFO_UPDATED, etc.)