a13n-logging


توضیحات

Shared structured and developer-friendly logging for Agent Foundation
ویژگی مقدار
سیستم عامل -
نام فایل a13n-logging-0.2.0
نام a13n-logging
نسخه کتابخانه 0.2.0
نگهدارنده []
ایمیل نگهدارنده []
نویسنده -
ایمیل نویسنده -
آدرس صفحه اصلی -
آدرس اینترنتی https://pypi.org/project/a13n-logging/
مجوز -
# a13n Logging `a13n-logging` is the shared logging library for Agent Foundation. The distribution is `a13n-logging`; the import package is `a13n_logging`. It requires Python 3.13 and uses standard logging plus Rich. ## Use it ```python from a13n_logging import LogFormat, configure_logging, get_logger configure_logging( log_format=LogFormat.json, logger_names=("my_application",), ) get_logger("my_application.tasks").info("ready", extra={"task_id": "task-example"}) ``` Configure once at the executable boundary. Libraries only create namespaced loggers. JSON goes to stdout; `LogFormat.pretty` selects Rich terminal rendering, and a `LogFile` adds a size-rotated JSON file. `log_context(**fields)` binds fields to every record logged in a block. No logger namespace or root logger is configured by default, and this package does not redact secret values. The [Logging guide](../../docs/a13n-logging/index.md) documents the public exports, configuration defaults, bound fields and their precedence, file rotation, exception behavior, output ownership, and customization. ## Validate ```console uv run --locked pytest packages/a13n-logging/tests ``` ## Release boundary `a13n-logging` publishes independently through `release/a13n-logging-v<version>`. Service and Harness releases consume it but do not republish it. See the [repository release model](../../spec/repository-model.md).


نیازمندی

مقدار نام
- rich<16,>=15


زبان مورد نیاز

مقدار نام
>=3.13 Python


نحوه نصب


نصب پکیج whl a13n-logging-0.2.0:

    pip install a13n-logging.whl


نصب پکیج tar.gz a13n-logging-0.2.0:

    pip install a13n-logging.tar.gz