Rachid Cherqaoui
05/27/2024, 12:21 PM$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:
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 ^^Rachid Cherqaoui
05/27/2024, 12:22 PMJitendra Gundaniya
05/27/2024, 1:36 PMRachid Cherqaoui
05/27/2024, 2:31 PMJitendra Gundaniya
05/27/2024, 3:00 PMconf/logging.yml
. This might be the root cause of your issue if your environment variable or configuration is not pointing to the correct location.
Also do the logs say "logging file not found" or something like that when you put the wrong path?
Please check the above information and let us know if you encounter any specific error messages or issues during your checks. We are continuing to investigate and will get back to you soon.Rachid Cherqaoui
05/27/2024, 3:02 PMRachid Cherqaoui
05/27/2024, 3:04 PMJitendra Gundaniya
05/27/2024, 3:16 PMRachid Cherqaoui
05/27/2024, 3:17 PMNok Lam Chan
05/28/2024, 9:57 AMhello, I do the migration of my projet to 0.19.x so my logging is on conf/loggin.yml , and when I execute the export command, All things go as I want and I don't get the error just when I run the projet I had nothing in info.log file@Rachid Cherqaoui is it the logging.yml not being read or it's just info.log does not show up as expected?
Rachid Cherqaoui
05/28/2024, 11:03 AMNok Lam Chan
05/28/2024, 11:11 AMRachid Cherqaoui
05/28/2024, 11:51 AMNok Lam Chan
05/28/2024, 12:02 PMNok Lam Chan
05/28/2024, 12:02 PM# Assume you in a terminal and inside kedro project already
export KEDRO_LOGGING_CONFIG=<path>
kedro run
Nok Lam Chan
05/28/2024, 12:03 PMsettings.py
to make sure the environment variable is actually picked up?
# settings.py
import os
print(__file__)
print(os.environ.get("KEDRO_LOGGING_CONFIG", "NO_CONFIG"))
Rachid Cherqaoui
05/28/2024, 12:07 PMNok Lam Chan
05/28/2024, 12:09 PM.env
yourself.Rachid Cherqaoui
05/28/2024, 12:12 PMNok Lam Chan
05/28/2024, 12:12 PMprint(___file___)
too so you can also check if the correct path is setNok Lam Chan
05/28/2024, 12:12 PMexport KEDRO_LOGGING_CONFIG=<path>You need to somehow set the environment variable. I am not sure what kind of environment/server are you running and it's hard to give you exact instruction
Nok Lam Chan
05/28/2024, 12:13 PMexport
and kedro run
Rachid Cherqaoui
05/28/2024, 12:45 PM