see README.md
Project description
lush-logx
structlog 的一套常用配置封装,顺手带了一个“解析结构化日志”的 CLI.
用法
最常见的场景是把项目日志统一成一套结构(开发环境友好,线上 JSON 稳定):
from lush_logx import configure_logging_once, get_logger
configure_logging_once()
logger = get_logger(__name__)
logger.info("hello", foo="bar")
CLI
lush-logx 内置了一个日志解析器,适合在本地把 JSON 日志流快速“读成”人能看的样子:
uv run lush-logx-cli-log-parser < your.log
开发
uv sync -p 3.10 --frozen
uv run -p 3.10 pytest
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
lush_logx-0.1.1.tar.gz
(22.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
lush_logx-0.1.1-py3-none-any.whl
(22.9 kB
view details)
File details
Details for the file lush_logx-0.1.1.tar.gz.
File metadata
- Download URL: lush_logx-0.1.1.tar.gz
- Upload date:
- Size: 22.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
576a5d8f604e798255e1ba1f83f69155304cdd53b9219d46d9d03d4a1f68ace2
|
|
| MD5 |
26ae46ab187b87ce1b7c8886df834946
|
|
| BLAKE2b-256 |
8b8fcb060797679f4776d2aa6fd73028158c79c9ffe00dfc564c183128cc5d79
|
File details
Details for the file lush_logx-0.1.1-py3-none-any.whl.
File metadata
- Download URL: lush_logx-0.1.1-py3-none-any.whl
- Upload date:
- Size: 22.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
553da14e231d915cf7195504e567ed84270b824a52e0233807b6b4ac4d1be8e1
|
|
| MD5 |
ee76b220d6b4c4fdd2f3600864e6f5fa
|
|
| BLAKE2b-256 |
5701f0fa49d0f11666b41629685cf200adea7ee6828e094e9602e50c61b17d82
|