paul_tiplady
02/25/2022, 12:53 AM[32mCompleted successfully[0m
From tap-mysql:
time=2022-02-25 00:15:46 name=tap_mysql level=INFO message=Stream ... is using incremental replication
Is there a way to have Meltano inject its log configuration into the taps/targets/transforms? It looks like singer.get_logger
lets us override the tap/target log config, is that wired up in Meltano? I don’t see it with a cursory search. Seems it defaults to <tap_dir>/logging.conf
by default. Should Meltano copy its own logging.conf in to taps/targets when installing them?edgar_ramirez_mondragon
02/25/2022, 5:37 PMIt looks likeThat is only true for taps/targets usinglets us override the tap/target log configsinger.get_logger
transferwise/pipelinewise-singer-python
, not singer-io/singer-python
.
The SDK does not (yet) use singer.get_logger
, so SDK-based packages do not support it. This could make a good issue if you'd like to file it 🙂
is that wired up in Meltano?Not at the moment. But, if the tap uses pipelinewise's library logger, you should be able to configure the logs by exporting a
LOGGING_CONF_FILE
env var pointing to a custom file similar to https://github.com/transferwise/pipelinewise-singer-python/blob/master/singer/logging.conf
Should Meltano copy its own logging.conf in to taps/targets when installing them?You mean a custom one, or reuse
logging.yaml
somehow?paul_tiplady
02/25/2022, 9:20 PMpaul_tiplady
02/25/2022, 9:20 PM