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.0.tar.gz
(23.0 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.0-py3-none-any.whl
(22.9 kB
view details)
File details
Details for the file lush_logx-0.1.0.tar.gz.
File metadata
- Download URL: lush_logx-0.1.0.tar.gz
- Upload date:
- Size: 23.0 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 |
e0092ca38714cf822638ebd229ebc14991898f7ebd76bef24654335d265b78b6
|
|
| MD5 |
663bad6541ca5eea6f5ae9f62da4ecb6
|
|
| BLAKE2b-256 |
d10767c9aafe5215820e4dc1355d8d51d262bfd185ff3b577c4710a0225d3c09
|
File details
Details for the file lush_logx-0.1.0-py3-none-any.whl.
File metadata
- Download URL: lush_logx-0.1.0-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 |
3f304fb250b7dd3e6c6b861fa26368d0fcf125e2c1653a8409abe1ca97231541
|
|
| MD5 |
33adee5c2b443402f931483e5e499782
|
|
| BLAKE2b-256 |
e952075b10c45616e08c62896f8aedc8ee34048873923f85e009c31bee4152e2
|