Skip to main content

Inference Logging

A package to initialize standardized logging for the inference service.

Getting Started - Usage

Install this package into your repository:

pip install inference-logging

In your code:

# ----------
# Add the logging-config to your own config.
from inference_logging import config as logging_config
from pydantic import Field
from pydantic_settings import BaseSettings


class CustomConfig(BaseSettings):
    """
    Customize your config.
    """
    appname: str = Field(default="your app name")
    logging: logging_config.Config = Field(default_factory=logging_config.Config)


custom_config: CustomConfig = CustomConfig()

# ----------
# At the beginning of your running script, initialize the logging.
# TODO: Import your initialized config.
from inference_logging import logging

logging.init(custom_config.appname, custom_config.logging)

# ----------
# Whenever you need a new logger, use the custom logger provided by this package.
from inference_logging import logging

logger: logging.Logger = logging.get_logger(__name__)

Metadata

Release files for inference-logging 1.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for inference-logging 1.0.6
File Size Uploaded
inference_logging-1.0.6.tar.gz 7.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for inference-logging 1.0.6
File Interpreter ABI Platform
inference_logging-1.0.6-py3-none-any.whl Python 3 none any Details

Total release size: 16.0 kB

Release files / inference_logging-1.0.6.tar.gz

Download URL inference_logging-1.0.6.tar.gz
Size 7.6 kB
Tags Source
SHA-256 checksum
How to use checksums
aef3748ea1f22b51cce07fb1d75de0b53251f541e4c4a46a3679a52a7fc12af6
BLAKE2b-256 checksum
How to use checksums
85fca32e7d0f9b4206d1790172f8736e3c2db24eebfcb3c224977712fbc56c45
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.2 CPython/3.12.3 Linux/6.6.87.2-microsoft-standard-WSL2

Release files / inference_logging-1.0.6-py3-none-any.whl

Download URL inference_logging-1.0.6-py3-none-any.whl
Size 8.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
df8679abe5a9c935baaf85d824f6eb76a8c5938709a97e068bab96ccd40a4589
BLAKE2b-256 checksum
How to use checksums
94cf73ff39eb266178cc85bdc29b4227c38a13ce661c0e731dd710fa1e8abe97
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.2 CPython/3.12.3 Linux/6.6.87.2-microsoft-standard-WSL2

Release history Release notifications | RSS feed

This release

1.0.6 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page