Skip to main content

Set logging.DEBUG while running LLM

Project description

llm-logging-debug

PyPI Changelog Tests License

Set logging.DEBUG while running LLM

Installation

Install this plugin in the same environment as LLM.

llm install llm-logging-debug

Usage

Set the LLM_LOGGING_DEBUG environment variable to 1 before running LLM:

export LLM_LOGGING_DEBUG=1
llm "Say hello in five languages" -m gemma3:27b

Or just for one invocation like this:

LLM_LOGGING_DEBUG=1 llm "Say hello in five languages" -m gemma3:27b

This will set the Python logging level to DEBUG for the duration of the LLM command.

One consequence of this is that plugins that use httpx will show detailed debugging information about the requests they are making.

Development

To set up this plugin locally, first checkout the code. Then create a new virtual environment:

cd llm-logging-debug
python -m venv venv
source venv/bin/activate

Now install the dependencies and test dependencies:

python -m pip install -e '.[test]'

To run the tests:

python -m pytest

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

llm_logging_debug-0.1.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

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

llm_logging_debug-0.1-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file llm_logging_debug-0.1.tar.gz.

File metadata

  • Download URL: llm_logging_debug-0.1.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for llm_logging_debug-0.1.tar.gz
Algorithm Hash digest
SHA256 3f3c58b2fbb77e8ee53b296fc8618a7523c5301ccd7c5158a2a4fd3add8d4b41
MD5 2eb9789f35aa26e7885a686ca87f6cf4
BLAKE2b-256 949c31f18ddd26145677eccdd8083122fdf7eeab02b2ec45eb44c57f690de345

See more details on using hashes here.

Provenance

The following attestation bundles were made for llm_logging_debug-0.1.tar.gz:

Publisher: publish.yml on simonw/llm-logging-debug

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file llm_logging_debug-0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for llm_logging_debug-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 387f6b14e6935adebe3a7bac87f0890ff311a31bbbd912ad50475bc4bd278921
MD5 a1957dc2a673bcb04f53228c7e1ec59d
BLAKE2b-256 f315c26e3cd73367d59ba8bfb5d677e05a1c6c5588be1cf82a753a4fecdf0960

See more details on using hashes here.

Provenance

The following attestation bundles were made for llm_logging_debug-0.1-py3-none-any.whl:

Publisher: publish.yml on simonw/llm-logging-debug

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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