I am having an endpoint for online predictions on AI platform (unified) and only logs with severity >= ERROR can be found..
Model was deployed using: --enable-container-logging
Logger code within container:
module_logger = logging.getLogger("MODULE_NAME")
module_logger.setLevel(logging.INFO)
handler = logging.StreamHandler()
handler.setFormatter("%(asctime)s — %(name)s — %(levelname)s — %(funcName)s:%(lineno)d — " "%(message)s")
module_logger.addHandler(handler)
Query: resource.type="aiplatform.googleapis.com/Endpoint" resource.labels.endpoint_id="ENDPOINT_ID" resource.labels.location="us-central1"
Two questions:
How do we make sure all logs logged by the container are logged and seen in the logs viewer?
What's that severity? how is it deduced by the console/platform?