Skip to content

Logger [en_us]

Gary Bryson Luis Jr edited this page Aug 14, 2021 · 1 revision

Logger

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.

Get ID

Logger.LOGGER_ID, returns "[grassUtils] "

Print log

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

Clone this wiki locally