-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[CT-1550] Make log format specification more flexible #6312
Comments
We need this as well. Right now there is no way to turn off logging to the file system. We need to be able to run DBT without write access to the file system for a couple reasons.
Regardless, the whole point of python logging is to leave decisions about logging configuration up to the user. We need a way to provide our own logging configuration. A --log-config-file variable would meet this use case perfectly. |
Another related issue: #6615 |
@DustinMoriarty To your points: Python model code is shipped up to run remotely in your data warehouse/platform. It isn't possible to access the same file system as the dbt project, unless you're connecting to a data processing engine that runs within the local process (e.g.
In v1.4, we have implemented a much more flexible |
closing in favor of #6639 |
We are in the process of changing the logging system to be less dependent on global variables and more self-contained, and also to make specifying custom log managers possible.
Right now we can only set one "log_format" which applies to both the stdout logger and the file logger. In this new logging world we will almost certainly want to be able to be more granular in settings for the loggers. For example, it seems desirable to enable people to use the text logger for stdout and the json logger for the file log. Once we implement a way to produce protobuf logs, people will probably not want to send those binary logs to stdout.
It's an open question about how these configs should be implemented. At the very least we would want to differentiate log formats for existing loggers. But it also feels like we might want to be able to configure different logging output to custom loggers without resorting to Python code.
The text was updated successfully, but these errors were encountered: