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

Make logging configurable #12

Open
gerritholl opened this issue Dec 20, 2021 · 0 comments
Open

Make logging configurable #12

gerritholl opened this issue Dec 20, 2021 · 0 comments

Comments

@gerritholl
Copy link
Collaborator

Logging configuration is currently hardcoded in viirs_dr_runner.py:

handler.setLevel(logging.DEBUG)
formatter = logging.Formatter(fmt=_DEFAULT_LOG_FORMAT,
datefmt=_DEFAULT_TIME_FORMAT)
handler.setFormatter(formatter)
logging.getLogger('').addHandler(handler)
logging.getLogger('').setLevel(logging.DEBUG)
logging.getLogger('posttroll').setLevel(logging.INFO)

It would be more user-friendly if this could be configured with a logging config, such as used by trollflow2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant