Skip to main content

Lightweight structured logger for Py projects with AI analysis!

Project description

SmartPyLogger

....................................................................................
....................................................................................
..........................................-++=..:...................................
.............-.........................=**#######+:.........-.......................
.............................-.......:=#***##**##*=.....................-...........
......-.............................:+******#**##*#=................................
.............-...................:=*********####%##*:...............................
..............................:+************#*####=..................-..............
...-*+=:.................-=****##*****####*######%+:................................
...-*#*#**##*********##**#*******#######**#%%#***#%+................................
...:=*****#*##*######****#*****#####*#*++--*%##***##=.........-.....................
....-******###*##**###**###*#*###****+-...:-*%%#**##%-..................-...........
....:=******###*###****#**#**#####**+:......-*%##***%#-.............................
.....:+*#***##***###******##**###**+:.......:-*%##**#%*-............................
......-*#****######***#**#*##*##**+:.........:-*%#*+*#%#:...........................
......:-*******#**********#***##**-...........-:=*##***#%*:.........................
........:-+#***************##**##**-............:=*##****#%*-.......................
............:=*#************+*###*#+.............-=*###**#%@%#-.....................
.............:-+#*************+*###*-......-......:-+*#%####%%*:....................
.......-.......:-=*#***************+.................-=*#%%%*###%=..................
..................:--##*************-.................:-+*%#****#%*.................
............-.......:--+#************#..................-=*#%#**#%%%-...............
........................::*********--+:...................:-=*###***#%*.............
.../PPPP/PPPPPPPPP..........++#*****--#....................:-=+###*#%%%.............
..| PPPPPPPPPPPPPPP..............-'++-#......................:=#%#***%%+............
..| PPPP_______/PPPP..-.........................-.............:=#%#***%%+...........
..| PPPP......| PPPP..........................................:=#%#***%%+...........
..| PPPPPPPPPPPPPPP./YYYY..../YYYY........-...................:=#%#***%%+...........
..| PPPP/PPPPPPPP..| YYYY...| YYYY............................:=*%##**#%#-..........
..| PPPP_______/...| YYYY...| YYYY.............................=*%%##*#%%=..........
..| PPPP............\ YYYYYYYYYYYY.....ooo....................=+%%%#**%%+...........
..| PPPP.............\ YYYYY_/YYYY.../OOOOO....-.............:=+###**#%#:...........
../____/..............\___/.| YYYY...| OOO...................=+#%#**#%#:............
...................../YYYY..| YYYY....\__/.................:=+***++++**-............
.............-......| YYYYY/ YYYYY...-..............................................
.....................\ YYYYYYYYYY...................................................
.......-..............\________/....................................................
....................................................................................
....................................................................................

Thank you so much for downloading and using SmartPyLogger! Developed by Niklavs Visockis, Ludvig Bergström and Jonas Lorenz - in June of 2025 at the Couchbase x AWS x Cillers Hackathon. Special thanks goes out to the Couchbase team and AWS for sponsoring this project.

FastAPI middleware for comprehensive request/response logging.

Installation

pip install smartpylogger .

Usage

from fastapi import FastAPI
from smartpylogger import LoggingMiddleware

app = FastAPI()

# Add your middleware
app.add_middleware(
    LoggingMiddleware,
    api_key="YOUR_API_KEY",
    allowed_origins=["IP", ...]
    )

What it logs:

  • Request details: Nothing yet

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

smartpylogger-0.1.2.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

smartpylogger-0.1.2-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file smartpylogger-0.1.2.tar.gz.

File metadata

  • Download URL: smartpylogger-0.1.2.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for smartpylogger-0.1.2.tar.gz
Algorithm Hash digest
SHA256 ebe95b88fefb4b0f13f435b15bddba6adcb0ef13306c7449f1c7c15d61d9d876
MD5 7eefa7be279fddc3619f8cb0b3b3df84
BLAKE2b-256 3ea301eb27251ca177783d7bf76dc18b4d0aa4c6b2552b21822b5d4bc84f16eb

See more details on using hashes here.

File details

Details for the file smartpylogger-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: smartpylogger-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for smartpylogger-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7733065ceec9ed561dadfe394ffe07d82d32538978f993db957d1906cc27972a
MD5 a4c23182ef4fa18dd52740dc3b06bea7
BLAKE2b-256 54ef3349b05a269a316e494c8e7d810c76640abc0c2742e03b82a38c7cb6de40

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page