init_logger#
- init_logger(*args, **kwargs) None[source]#
Init the right logger according the SERTIT_LOGGER_TYPE environment: - if SERTIT_LOGGER_TYPE == “STDOUT_BASIC”, it creates a logger which outputs to STDOUT. Convenient for CLI tools - if SERTIT_LOGGER_TYPE == “STDOUT_JSON”, logs are printed as JSON object to STDOUT. Convenient if you want to stream logs
to another process via STDOUT. For example, a process running in the arcgispro-eo backend environment.
if SERTIT_LOGGER_TYPE == “STDOUT_FILE_ADVANCED”, same as “STDOUT_BASIC” but logs are also recorded in a file.
Returns: