monarch-initiative / koza

Data transformation framework for LinkML data models
https://koza.monarchinitiative.org/
BSD 3-Clause "New" or "Revised" License
48 stars 4 forks source link

Logging updates: quiet mode and option to write log files #82

Closed kevinschaper closed 2 years ago

kevinschaper commented 2 years ago

The logging output from Koza can get a bit noisy, and if ingests are running in parallel, it can be hard to keep the output straight.

We should have a --quiet option that reduces logging that goes to the screen (maybe we still need ERROR level?).

At the same time, we should add a --log option. I'm not sure if it should take a file name or a directory name, or even maybe whether it should just be a boolean flag and by default it will write logs/{ingest_name}.log

glass-ships commented 2 years ago

It looks like --quiet is already implemented in Koza, which is great!

PR #84 aims to add a --log option and is in progress

glass-ships commented 2 years ago

Log option works now, will passively work on making it fancier.

glass-ships commented 2 years ago

Should maybe make a new ticket for importing / passing on loggers to / from other modules? If it comes up anyway - it may not be an issue