dolthub / dolthub/doltpy

Expose logging configurations to users

Open
#49 1 comment 0 reactions 1 assignee Claimed by @oscarbatori View on GitHub
enhancement
Dominant language
Python
Stars
62
Forks
12
PR merge metrics
No merged PRs in 30d

Description

Currently Doltpy implements logging in a suboptimal way: each file has a logging object with it's name passed. This means the library does not have an ability to configure the log level without importing the `logger` and then manually setting the log level (it's not _that_ bad, but it requires knowing about the variable, and it's not documented).

Instead, we should implement a global log level variable for `doltpy.core` and expose it in the user facing API with a sensible default. Loggers should then be instantiated from a shared factory method that uses this shared configuration. We can also use this to enable library users to specify handlers etc.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.