-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
logging configuration not causing output to stdout #1401
Comments
In the [handler_console] section. The args: [sys.stdout,] parameter should allow the log to be written to stdout. |
Try changing the [logger_luigi-interface]
level: INFO
handlers: console, logfile
qualname: luigi-interface
propagate=1 |
Here is what I use. Though I'm a noob at logging configuration though.
|
closing this issue.
Every open issue adds some clutter, and we try to make the issues fewer and make it easier for new collaborators to find. Currently we try to close any issue that meets the first checkbox + one other. Feel free to reopen this issue at any point if you have the intent to continue to work this. :) |
When using a logging config file, Luigi does not respect the argument to use stdout. It would be ideal to be able to direct different log levels to stdout/stdiin
[formatters]
keys: default
[handlers]
keys: console, logfile
[loggers]
keys: root, luigi-interface
[formatter_default]
format: %(asctime)-15s %(levelname)-8s [%(filename)s:%(lineno)s - %(funcName)10s()] - %(message)10s
[formatter_generic]
class=logging.Formatter
format=%(asctime)s %(levelname)s [%(filename)s:%(lineno)s - %(funcName)10s()] %(message)s
datefmt=
[handler_console]
class: StreamHandler
args: [sys.stdout,]
formatter: default
[handler_logfile]
class: FileHandler
args: ['/logs/workflow.log']
formatter: default
[logger_root]
level: INFO
handlers: console, logfile
qualname: root
propagate=1
[logger_luigi-interface]
level: INFO
handlers: console, logfile
qualname: luigi
propagate=1
The text was updated successfully, but these errors were encountered: