<#3002 Support a --log-format short cut> Issue cre...
# meltano-repo-activity
g
#3002 Support a --log-format short cut Issue created by MeltyBot Migrated from GitLab: https://gitlab.com/meltano/meltano/-/issues/3070\n\nOriginally created by @pandemicsyn on 2021-11-17 205323\n\n---\n\nPer @rabidaudio in https://gitlab.com/meltano/meltano/-/merge_requests/2395#note_731245620\n\n> Would it be possible to configure the log format from CLI args? It seems like the way to configure it as designed now is through the log handler files. It seems clunky to ask users to turn on structured logs everywhere just so they show up nicely in Dagster. I suppose our Dagster pipelines could generate an alternate
logging.yaml
file and pass with
--log-config
, would this be the recommended way?\n\nWe could definitely add a basic
--log-format=[json|keyvalue|uncolored-console]
flag that switches meltano to use one of our other built-in formatters for the console logger if there's no logging config present.\n\nIt would be a nice shortcut for scenarios where folks don't want to supply a more elaborate logging config, and really just want to be able to switch from a human-friendly format to a machine-friendly format. meltano/meltano