Skip to main content

The utility package of Dou Co., Ltd.

Project description

DouLogger

A simple and flexible Python logging utility with enhanced features for structured logging.

Features

  • Easy-to-use logging methods: info, debug, warning, error.
  • Structured logging support: Pass additional metadata with your log messages.
  • Configurable logging levels: Control the verbosity of your logs.

Installation

Install DouLogger directly from the GitHub repository:

pip install git+https://github.com/douinc/dou-python-utils.git@v0.1.0

Quick Start

Import the logger from the dou package:

from dou import logger

Basic Logging

Log messages at different severity levels:

logger.info("This is an info message")
logger.debug("This is a debug message")
logger.warning("This is a warning message")
logger.error("This is an error message")

Structured Logging

Include additional metadata in your logs for better traceability:

logger.info(
    message={
        "event": "user_signup",
        "user_id": 12345,
    },
    search_id="abcde12345",
)

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contact

For questions or suggestions, please open an issue or contact us at team@dou.so

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

dou_utils-0.1.1.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

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

dou_utils-0.1.1-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file dou_utils-0.1.1.tar.gz.

File metadata

  • Download URL: dou_utils-0.1.1.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.1

File hashes

Hashes for dou_utils-0.1.1.tar.gz
Algorithm Hash digest
SHA256 3db90d33611a3b42789595cb4eb43bde91f6670871ac0c0be52045bb89627fe5
MD5 4d63503774ab484903b3322c7f7c80a4
BLAKE2b-256 3908fe63e722418981da657c8aa24544230e227463233e9894ce071775926a60

See more details on using hashes here.

File details

Details for the file dou_utils-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: dou_utils-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.1

File hashes

Hashes for dou_utils-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 18a990e176262f33d1c2d9658162e7fdf1fdc3a7896899b6e041a325bb2dd7f4
MD5 11c12dd708ea6cb34d82dd2278b15bb3
BLAKE2b-256 faedbc9c54eefe811be2f3eb7311dec448787c9476485341b95ba0f7abb7bd98

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