Hello, I am struggling to log metrics to a file. I...
# troubleshooting
a
Hello, I am struggling to log metrics to a file. I used exactly what was on the SDK logging document (linked below) and it will create a
metrics.log
file but no logs are written to it. I can see the metrics being logged to the console. Does anyone know what could be the reason? https://sdk.meltano.com/en/latest/implementation/logging.html#custom-logging-configuration
1
e
Did you set the
SINGER_SDK_LOG_CONFIG
environment variable?
🙌 1
a
@Edgar Ramírez (Arch.dev) Thank you! That was the missing piece. I guess I glossed over that because I assumed
logging.yaml
would be read by default since it was in the project root. However, I can see in
metrics.py
that there is no default so just a miss by me. I blame it being Friday 😁
🙌 1
e
Nice, happy that was all that missing! Have a good weekend.