alan-turing-institute / netts

Toolbox for creating networks capturing semantic content of speech transcripts.
https://alan-turing-institute.github.io/netts/
GNU General Public License v3.0
8 stars 1 forks source link

Replace print() with logger.debug() and remove be_quiet params #92

Closed Iain-S closed 3 years ago

Iain-S commented 3 years ago

Overview

Moves over to using the logging module instead of print for the nlp_helper_functions file.

See also #82

Iain-S commented 3 years ago

Also moves the logging level from an env var to a commandline argument (either -v for INFO or -vv for DEBUG). If someone is using netspy as a library, they can set the logging level themselves, else it will likely default to WARN.

Iain-S commented 3 years ago

@OscartGiles are you happy with this one? I notice there are some cprints in the CLI code. Not sure whether we want to try to do coloured logger formatting or leave that for some other time?

OscartGiles commented 3 years ago

Looks great. Ah yeh, im not sure about cprint now. It seemed like a good idea, but didnt have a structured idea for a colour scheme