Add logging#65
Open
CBreton026 wants to merge 6 commits intoNTNU-IndEcol:masterfrom
Open
Conversation
Contributor
Author
|
This PR seems to also include "pip install", although I tried to keep those separate... Sorry if this causes any issue, I'm not sure what happened! |
Collaborator
|
Also here I wonder if a short description in our doc files would make sense? How to configure verbosity, etc.? Or ist that for later? |
Contributor
Author
|
@nheeren that makes sense! I may have already something written for it, I'll have a look! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is a tentative logging module for BuildME.
This adds loggers to each file in BuildME/BuildME; the loggers are 'collected' by the logger in main.py, which uses the dictConfig as defined in settings.LOGGING_CONFIG.
For now, it simply collects logging messages and outputs them to the console; it also 'records' any logging.error() in an error log file. This file is "rotating" - two text files of up to 1 MB each can coexist; after that, the older file is deleted.
This is a first step, the logger can be enhanced further to include the features discussed in #61 !