-
Notifications
You must be signed in to change notification settings - Fork 3
Logger [en_us]
Gary Bryson Luis Jr edited this page Aug 14, 2021
·
1 revision
Logger is the internal script GrassUtils uses to print logs.
Use import scripts.grassUtils.Logger; to import in CrT scripts.
Use import scripts.grassUtils.LoggerCot as Logger; to import in CoT scripts.
Logger.LOGGER_ID, returns "[grassUtils] "
Logger.sendInfo("info"); // Print an INFO message [GrassUtils] info
Logger.sendWarning("warn"); // Print a WARNING message [GrassUtils] warn
Logger.sendError("error"); // Print an ERROR message [GrassUtils] error