Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

jaylog

Biblioteca de logging para Python com rotação de arquivos, saída colorida no console, envio HTTP para um endpoint remoto e registro automático do ambiente de execução (host reporting).

📖 Documentação completa: https://gpocas.github.io/jaylog-book

Instalação

pip install -U --no-cache-dir jaylog

Uso rápido

.env.logging

JAYLOG_APP_NAME=meu-bot
JAYLOG_LOG_DIR=C:\logs

main.py

from jaylog import JaylogSettings, configure, get_logger

configure(JaylogSettings())

logger = get_logger()

logger.info("Olá, jaylog!")

Métricas de recursos

Com o endpoint HTTP configurado, o jaylog envia a cada minuto o uso de CPU, memória e disco da máquina e do processo (somando os filhos, como Chrome e Excel abertos pelo bot) para POST /logs/host-metrics, e os limites da máquina (CPUs, RAM total, disco total) junto com o registro de ambiente. Não exige configuração nova:

Variável Padrão
JAYLOG_HOST_METRICS_ENABLED true Depende de JAYLOG_HOST_REPORT_ENABLED
JAYLOG_HOST_METRICS_INTERVAL 60 Segundos, mínimo 10
JAYLOG_HOST_METRICS_HTTP_ENDPOINT derivado /logs/add → /logs/host-metrics

Para variáveis de ambiente, cenários de uso (console-only, múltiplos loggers, cores), preparação para produção (secrets, host reporting) e referência da API, veja a documentação guiada.

Release files for jaylog 0.3.0a4

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

Source distribution (sdist)

Source distribution for jaylog 0.3.0a4
File Size Uploaded
jaylog-0.3.0a4.tar.gz 37.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for jaylog 0.3.0a4
File Interpreter ABI Platform
jaylog-0.3.0a4-py3-none-any.whl Python 3 none any Details

Total release size: 88.1 kB

Release files / jaylog-0.3.0a4.tar.gz

Download URL jaylog-0.3.0a4.tar.gz
Size 37.5 kB
Tags Source
SHA-256 checksum
How to use checksums
5fa036c1c5388282cc1dfd2ce1b7f0213e73dc4892b941009dfb250fb592cfbb
BLAKE2b-256 checksum
How to use checksums
c18e08890988ef4ce5b8e6f9408d918a167d3065dcaa42f3f6b56bfbfccdf94b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","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":null}

Release files / jaylog-0.3.0a4-py3-none-any.whl

Download URL jaylog-0.3.0a4-py3-none-any.whl
Size 50.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
487c7933226f585096c91aec598808016696ba81a2c0fa851484388475b82988
BLAKE2b-256 checksum
How to use checksums
095137385da3b51d9df2560a3d1f24756f5f9eb50b7e0aba74938f0e15b1dff5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","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":null}
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