logging#

cloudly.gcp.logging.gcp_handler(name: str, *, labels: dict | None = None, grace_period: float | None = None, batch_size: int | None = None, max_latency: float | None = None, stream: IO | None = None) Handler[source]#

name is the “log name” shown on GCP logging dashboard. A unique name enables user to inspect the particular program’s log in isolation.

User may want to pass in labels with info of interest to their application.

cloudly.gcp.logging.add_gcp_handler(name, *, labels=None, with_datetime=False, with_timezone=False, with_level=False, **kwargs) Handler[source]#
cloudly.gcp.logging.config_logger(name, level=20, **kwargs)[source]#