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

The 'defaults' parameter in python logging configure does not support in luigi. #3229

Open
bluezealot opened this issue Mar 12, 2023 · 0 comments

Comments

@bluezealot
Copy link

The code of initializing logging configuration in luigi neglected the standard python logging feature

defaults – Defaults to be passed to the ConfigParser can be specified in this argument.

This makes it impossible to configure logging file names by specifying a placeholder in the logging configure file.
For example:

[handler_fileHandler]
class=FileHandler
level=DEBUG
formatter=fileFormatter
args=('%(logfilename)s',)

in raw python we can replace the placeholder %(logfilename)s to specific log file name like:

logging.config.fileConfig(loginipath, defaults={'logfilename': '/var/log/mylog.log'})

Paste the Luigi code for reference.
/luigi/setup_logging.py

Could you please add the feature?

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