A beginner-friendly demonstration of implementing structured application logging using Python 3 and Google Cloud Functions, integrated with Google Cloud Logging Explorer.
This project showcases how to handle application logs in a serverless environment on Google Cloud Platform (GCP). It deploys an HTTP-triggered Python Cloud Function that generates structured JSON logs across multiple log severity levels (INFO, WARNING, and ERROR).
- Serverless Execution: Deployed as a lightweight Google Cloud Function.
- Structured Logging: Formats log outputs in JSON for easy querying and filtering.
- Log Levels Simulation: Supports handling and logging distinct event types based on request parameters.
- GCP Cloud Logging Integration: Seamlessly routes outputs to Google Cloud Logging Explorer.
basic-application-logging-functions/
├── README.md # Documentation and execution guide
├── main.py # Core Cloud Function logic with structured logging
└── requirements.txt # Python dependencies