Giter Club home page Giter Club logo

structlog-overtime's Introduction

structlog-overtime

Utilities for structlog with the goal of enabling complex use cases without having to defer to standard library logging.

Features

  • TeeLoggerFactory: copy events to multiple destinations (e.g. console and file)
  • MockLoggerFactory: accumulates events in a list (useful for tests)
  • FilterMethods: filter events based on the method that was called (i.e. filter by log level)
  • FilterKeys: adjust which fields are included in your event dicts
  • TimezoneAwareTimeStamper: make your timestamps explicitly include a timezone
  • bind: type-preserving wrapper around BoundLogger.bind
  • noop: a processor that gloriously does nothing

The name?

https://www.youtube.com/watch?v=GnEmD17kYsE

Development

Running the tests

git clone [email protected]:kierdavis/structlog-overtime.git
cd structlog-overtime
python3 -m venv .venv
source .venv/bin/activate
pip install -e '.[dev]'
pytest

Making a release

  1. Bump the version number in setup.py
  2. Commit the version nummber change: git commit
  3. Publish to PyPI and create git tag: carthorse --config carthorse.yaml

License

public domain

structlog-overtime's People

Contributors

kierdavis avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

suimong

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.