Skip to content

Python log storage#492

Open
evertlammerts wants to merge 2 commits into
duckdb:v1.5-variegatafrom
evertlammerts:issue-480-python-log-storage
Open

Python log storage#492
evertlammerts wants to merge 2 commits into
duckdb:v1.5-variegatafrom
evertlammerts:issue-480-python-log-storage

Conversation

@evertlammerts

Copy link
Copy Markdown
Member

Fixes #480

This adds a PythonLogStorage that logs to both a logging.Logger named "duckdb" and to the in-memory storage. The storage is enabled by default.

Example:

import logging, duckdb

logging.basicConfig(level=logging.DEBUG)

con = duckdb.connect()
con.execute("SELECT list_transform([1,2,3], x -> x+1)")

Outputs:

WARNING:duckdb:Deprecated lambda arrow (->) detected. Please transition to the new lambda syntax, i.e.., lambda x, i: x + i, before DuckDB's next release.
Use SET lambda_syntax='ENABLE_SINGLE_ARROW' to revert to the deprecated behavior.
For more information, see https://duckdb.org/docs/stable/sql/functions/lambda.html.

And SELECT message FROM duckdb_logs still works as well.

@evertlammerts evertlammerts changed the title Issue 480 python log storage Python log storage Jun 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant