You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Has the methods info, warn, debug and error. They all take as many arguments as you want, log them all on a single line separated by spaces, and then returns back the first argument.
Also displays its name in the console for easier tracking.
debug will only ever print something in test environments, not when exported, and will never print the same thing twice in a row.
// Should be stored as a constantSolLoggerlogger = newSolLogger("Sol/Test");
intx = logger.info(3 + 5, ": x value"); // x is 8
[Sol/Test] 8 : x value
Every SolModContainer automatically creates a SolLogger with its name accessible by getLogger().