💬Custom logging

Sometimes it is necessary to extract some debug information to verify what happens during code based workflow execution. In order to make that easier, we're exposing a custom logger that can be easily included in any code block.

To create logger, simply import the logger factory from user_logger module:

from user_logger import get_logger
log = get_logger()

With that, it is possible to log different kind of messages (even with variable evaluation), e.g.:

log.info("This is my info message")

variable = 2
log.warning(f"Oops! My {variable * 4}")

number = ee.Number(5).multiply(50)
log.error(f"My EE number {number.getInfo()}")

This will produce following output:

Last updated