Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve logging #47

Open
bitprophet opened this issue Apr 28, 2016 · 0 comments
Open

Improve logging #47

bitprophet opened this issue Apr 28, 2016 · 0 comments
Milestone

Comments

@bitprophet
Copy link
Owner

Right now logging is scattershot and uses ye olde local sys.stderr.write functionality, with bonus "rebind to a partial within functions due to requirement of access to app.config to tell whether debug mode is enabled" BS. (The latter being partly Sphinx/docutils' fault, but still.)

Would be nice to:

  • Figure out a non awful way to access the config value globally
    • Given that this is a documentation building tool (i.e. not expecting long, persistent processes where state might get confused) & there's difficulties in obtaining the data from Sphinx at arbitrary points in time...I might stoop to "set a module level variable at some point".
  • Replace hand-rolled log function with actual logging module (stdlib or other)
  • Overhaul actual log lines to be clean, useful, thorough etc.
    • Because it's really dumb to add manual log/print statements when debugging new features or bugs. It's 2016.
@bitprophet bitprophet modified the milestone: 2.0 Apr 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant