Set logging.DEBUG while running LLM
Project description
llm-logging-debug
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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3f3c58b2fbb77e8ee53b296fc8618a7523c5301ccd7c5158a2a4fd3add8d4b41
|
|
| MD5 |
2eb9789f35aa26e7885a686ca87f6cf4
|
|
| BLAKE2b-256 |
949c31f18ddd26145677eccdd8083122fdf7eeab02b2ec45eb44c57f690de345
|
Provenance
The following attestation bundles were made for llm_logging_debug-0.1.tar.gz:
Publisher:
publish.yml on simonw/llm-logging-debug
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
llm_logging_debug-0.1.tar.gz -
Subject digest:
3f3c58b2fbb77e8ee53b296fc8618a7523c5301ccd7c5158a2a4fd3add8d4b41 - Sigstore transparency entry: 201168284
- Sigstore integration time:
-
Permalink:
simonw/llm-logging-debug@0a7aa4cead6e45d532b457cb410dba2c9c68dc4f -
Branch / Tag:
refs/tags/0.1 - Owner: https://github.com/simonw
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@0a7aa4cead6e45d532b457cb410dba2c9c68dc4f -
Trigger Event:
release
-
Statement type:
File details
Details for the file llm_logging_debug-0.1-py3-none-any.whl.
File metadata
- Download URL: llm_logging_debug-0.1-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
387f6b14e6935adebe3a7bac87f0890ff311a31bbbd912ad50475bc4bd278921
|
|
| MD5 |
a1957dc2a673bcb04f53228c7e1ec59d
|
|
| BLAKE2b-256 |
f315c26e3cd73367d59ba8bfb5d677e05a1c6c5588be1cf82a753a4fecdf0960
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
llm_logging_debug-0.1-py3-none-any.whl -
Subject digest:
387f6b14e6935adebe3a7bac87f0890ff311a31bbbd912ad50475bc4bd278921 - Sigstore transparency entry: 201168288
- Sigstore integration time:
-
Permalink:
simonw/llm-logging-debug@0a7aa4cead6e45d532b457cb410dba2c9c68dc4f -
Branch / Tag:
refs/tags/0.1 - Owner: https://github.com/simonw
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@0a7aa4cead6e45d532b457cb410dba2c9c68dc4f -
Trigger Event:
release
-
Statement type: