dosaboy / searchkit

Apache License 2.0
1 stars 2 forks source link

Use different loggers for different log sources #12

Open mustafakemalgilor opened 10 months ago

mustafakemalgilor commented 10 months ago

Currently, searchkit uses the default logger for logging, and there is no distinction between log sources. Searchkit ideally should have its own dedicated loggers, preferably in a reasonable granularity to have better control on logging, e.g. ("searchkit.searchdef", "searchkit.constraints.datesince")

dosaboy commented 10 months ago

@mustafakemalgilor I fixed the issue of using the root logger just recently [1]. I like your suggestion of adding more fine grain loggers.

[1] https://github.com/dosaboy/searchkit/blob/main/searchkit/log.py#L4