prakhar_srivastava
10/12/2023, 8:37 AMprakhar_srivastava
10/12/2023, 9:39 AMloggers:
singer_sdk:
level: ERROR
handlers: [console]
propogate: yes
singer_sdk.Tap:
level: ERROR
handlers: [console]
propogate: yes
singer_sdk.Target:
level: INFO
handlers: [console]
propogate: yes
prakhar_srivastava
10/12/2023, 9:56 PMedgar_ramirez_mondragon
10/12/2023, 10:07 PMmeltano.yml
, inject a different logging config for each plugin:
plugins
extractors:
- name: tap-github
env:
SINGER_SDK_LOG_CONFIG: logging/sdk_tap.yaml
loaders:
- name: target-postgres
env:
SINGER_SDK_LOG_CONFIG: logging/sdk_target.yaml
I use a global SDK logging config in my dogfood project: https://github.com/edgarrmondragon/meltano-dogfood/blob/e3a06d676f5367215fc98b6bd3b8bdbc100dd60a/meltano.yml#L6-L7prakhar_srivastava
10/13/2023, 2:37 PMversion: 1
disable_existing_loggers: true
formatters:
metrics:
format: "{asctime} {message}"
style: "{"
handlers:
metrics:
class: logging.StreamHandler
level: WARN
formatter: metrics
stream: "<ext://sys.stderr>"
loggers:
singer_sdk.metrics:
level: WARN
handlers: [ metrics ]
propagate: false
target:
version: 1
disable_existing_loggers: true
formatters:
metrics:
format: "{asctime} {message}"
style: "{"
handlers:
metrics:
class: logging.StreamHandler
level: INFO
formatter: metrics
stream: "<ext://sys.stderr>"
loggers:
singer_sdk.metrics:
level: INFO
handlers: [ metrics ]
propagate: false
and then in .env:
TAP_SINGER_SDK_LOG_CONFIG='logging/singer_tap_logging.yaml'
TARGET_SINGER_SDK_LOG_CONFIG='logging/singer_target_logging.yaml'
user
10/13/2023, 2:49 PMSINGER_SDK_LOG_CONFIG
prakhar_srivastava
10/16/2023, 2:08 PMSINGER_SDK_LOG_CONFIG
even if I gave different path in env
for tap/target, it always pick the config which appears first.user
10/16/2023, 2:50 PMSINGER_SDK_LOG_CONFIG
in meltano.yml
?prakhar_srivastava
10/16/2023, 3:52 PMSINGER_SDK_LOG_CONFIG
has the same file but the position is same for these variables.edgar_ramirez_mondragon
10/16/2023, 8:46 PMit always pick the config which appears first.not sure I follow this. You're using a single logging configuration. Is the problem that either the tap or target is not picking up the config, or that they're using the same config?