Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lupl/basic logging #186

Closed
wants to merge 3 commits into from
Closed

lupl/basic logging #186

wants to merge 3 commits into from

Conversation

lu-pl
Copy link
Contributor

@lu-pl lu-pl commented Jan 10, 2025

Closes #163

lu-pl added 2 commits January 9, 2025 20:30
This adds a very basic SPARQL pretty printer, mainly for logging output.
The implementation is kind of crude with C-style array appending, but
strings are immutable, so append/join is actually a cheaper solution than
recursive string construction.

Doing anything with SPARQL queries without a proper SPARQL parser that
handles validation, serialization etc. is basically a kludge. Just saying.
@lu-pl lu-pl requested review from b1rger and kevinstadler January 10, 2025 08:14
The changes introduces basic INFO and DEBUG logging for
SPARQLModelAdapter __init__ and query.

Currently available log levels are "INFO" and "DEBUG", the log level
can be set with log_level parameter (default "INFO").

Closes #163.
@lu-pl lu-pl force-pushed the lupl/basic-logging branch from cb64a45 to 29b0157 Compare January 10, 2025 08:17
@lu-pl lu-pl marked this pull request as draft January 10, 2025 10:38
@b1rger b1rger removed their request for review January 10, 2025 10:42
@lu-pl lu-pl closed this Jan 10, 2025
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.

Add logging
1 participant