Skip to main content

TLog 二进制 .tlog 写入与解析(import mylog)

Project description

tlog-mylog(仅含 mylog)

Python 侧 TLog 二进制日志(.tlog)写入与解析,发行名为 tlog-mylog,导入为 mylog

从 PyPI 安装

pip install tlog-mylog

用法摘要

import mylog

mylog.init("myapp", log_dir="./logs", console=True)
logger = mylog.get_logger("main")
logger.info("hello")

.tlog 转成可读文本:

python -m mylog.dump path/to/file.tlog

开发与发布(在本目录 mylog/

cd mylog   # 含本 README 与 pyproject.toml 的目录
python -m pip install --upgrade build twine
python -m build
twine check dist/*
twine upload dist/*

与本仓库其余模块(查看器、tlog_serial 等)共用代码时,仍可在仓库根目录使用根级 pyproject.tomlpip install -e ".[dev]")。

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

tlog_mylog-0.1.0.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

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

tlog_mylog-0.1.0-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file tlog_mylog-0.1.0.tar.gz.

File metadata

  • Download URL: tlog_mylog-0.1.0.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for tlog_mylog-0.1.0.tar.gz
Algorithm Hash digest
SHA256 df61a7d088bceecc1c349fe802b2a9a267613617b33b4945b058c190d0fa35f9
MD5 b202555fdd5b0e05ad136868a73605f8
BLAKE2b-256 dc5dba48ea25f4237cc5cf952b0d1e70ddd9531db0ef21745e5012a913c0b345

See more details on using hashes here.

File details

Details for the file tlog_mylog-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: tlog_mylog-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for tlog_mylog-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e07530731cb7598909bac1931785f6f6c6deb7cd58c82bf3f64af6b230bff274
MD5 6fc927c16ed59b6a22357be317a4ab13
BLAKE2b-256 cc86e08def5769cbd3d6f39af6982bfe0dc534cb58121cd797923f0fe0d29d07

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