Skip to content

About

basic-application-logging-functions

Resources

Stars

4 stars

Watchers

0 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Basic Application Logging with Cloud Functions

A beginner-friendly demonstration of implementing structured application logging using Python 3 and Google Cloud Functions, integrated with Google Cloud Logging Explorer.


📌 Project Overview

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).

Key Features

  • 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.

🛠️ Project Structure

basic-application-logging-functions/   
├── README.md               # Documentation and execution guide
├── main.py                 # Core Cloud Function logic with structured logging
└── requirements.txt        # Python dependencies

About

basic-application-logging-functions

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages