Hi everyone, I'm having a problem with Kedro's log...
# questions
r
Hi everyone, I'm having a problem with Kedro's logging configuration. I developed a Kedro project on my local machine and used this command to use the config/logging.yml file:
Copy code
$env:KEDRO_LOGGING_CONFIG="conf/logging.yml"
And it worked perfectly. However, when I put the project on the server, I did the same thing but this time with the command:
Copy code
export KEDRO_LOGGING_CONFIG=<project path>/conf/logging.yml
in the .bashrc on my server and when I start the service, nothing happens. I can't get the logs or anything at all. I also tried to set the env variable in .env but it still doesn't work. Do you have any idea how to fix this project? Thanks in advance ^^
i
Are you certain the bashrc is getting sourced in your server? bashrc doesn't necessarily always get imported.
r
yes I turn it on and I check the path with echo and I get the Path but logging no work in kedro project
m
@Rachid Cherqaoui when you say "when I put the project on the server" can you explain how you did that? Did you use
kedro package
?
r
@Merel hello, actually, the project is already on the company server. Previously, I had Kedro version 0.18.6, so I migrated the project to Kedro 19.0.4. After doing this, I no longer have traceability on the loggings.
anyone can help me plz ?
?
m
@Rachid Cherqaoui we've just released Kedro
0.19.6
which sets logging by default. Can you try using this new version and see if it works?