add logging example

This commit is contained in:
matcool 2024-05-25 19:55:44 -03:00
parent 089737ad07
commit 73902dbb67

View file

@ -38,6 +38,13 @@ class $modify(MyMenuLayer, MenuLayer) {
return false; return false;
} }
/**
* You can use methods from the `geode::log` namespace to log messages to the console,
* being useful for debugging and such. See this page for more info about logging:
* https://docs.geode-sdk.org/tutorials/logging
*/
log::debug("Hello from my MenuLayer::init hook! This layer has {} children.", this->getChildrenCount());
/** /**
* See this page for more info about buttons * See this page for more info about buttons
* https://docs.geode-sdk.org/tutorials/buttons * https://docs.geode-sdk.org/tutorials/buttons