You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, I would say so, having a logger configured immediately really helps to draw people's attention to the fact that they should use a logger instead of printing everything. I usually have something like this:
The above example is for a program, for libraries you might want something a bit different. For programs it would be nice to also add an entry point and a default command line parser that displays a help and the version number, e.g. using click or argparse.
Activity
bouweandela commentedon Jul 5, 2018
Yes, I would say so, having a logger configured immediately really helps to draw people's attention to the fact that they should use a logger instead of
printing everything. I usually have something like this:(usually I add a command line option to specify the log level) and have
at the top of every file where I need to log stuff.
bouweandela commentedon Jul 6, 2018
The above example is for a program, for libraries you might want something a bit different. For programs it would be nice to also add an entry point and a default command line parser that displays a help and the version number, e.g. using click or argparse.
jvdzwaan commentedon Sep 3, 2018
Notes to self: