Console Operations
Using the console can be useful for debugging and finding out issues with your code. The Mod Framework uses the Android's logcat feature to write lines to the console.
Writing to the console
To write a new line to the console, use the Console API and the Console.Write
function along with including the string you want the framework to write.
Using tags when writing
Tags can simplify the process of debugging for developers writing mods.
There are three type of tags that can be used.
Information: Used to print relevant information about execution status, or other information.
Error: Used to print information about errors and other issues related to the code.
Warning: Used to print information about possible issues related to the code.
Tag
Codename
Information
info
Error
error
Warning
warn
Last updated