Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

Logging for Stockholm University

Project description

Logging for Stockholm University

Easy to use logging for Stockholm University.

Usage

from su.logging import logging

logger = logging.getLogger("myapp")
logger.info("My INFO message")

Structured logging

We use logstash_formatter's LogstashFormatterV1 and remove some unused/unnecesary fields.

from su.logging import structured, logging

logger = logging.getLogger("myapp")
logger.info("User logged in", extra={"user": "simlu"})

try:
    raise Exception("User performed illegal activity")
except Exception as e:
    logger.exception(e, extra={"user": "simlu"})

TODO

Project details


Download files

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

Files for su-logging, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size su_logging-0.1.1-py3-none-any.whl (2.5 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size su-logging-0.1.1.tar.gz (2.3 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page