mirror of
https://github.com/geode-sdk/example-mod.git
synced 2024-11-24 08:18:04 -05:00
add logging example
This commit is contained in:
parent
089737ad07
commit
73902dbb67
1 changed files with 7 additions and 0 deletions
|
@ -38,6 +38,13 @@ class $modify(MyMenuLayer, MenuLayer) {
|
|||
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
|
||||
* https://docs.geode-sdk.org/tutorials/buttons
|
||||
|
|
Loading…
Reference in a new issue