GitHub user Neon-Face closed the discussion with a comment: How do you log when
using TaskFlow and a Virtualenv?
Hello, I have similar issue nowadays.
I am also using `@task.virtualenv`
```
@task.virtualenv(
python_version="3.9",
requirements="requirements_example.txt", # Must exist in DAG folder; list
all packages needed in virtualenv
system_site_packages=True,
venv_cache_path="venvs/example", # Must exist; caches virtualenv
to speed up subsequent runs
inherit_env=True,
)
def task_two(logical_date=None, params=None):
import logging
logger = logging.getLogger("airflow.task")
logger.info('airflow.task logger')
```
But it doesnt work, can you please tell me how did you change the config to
make it work? Thank you!
GitHub link:
https://github.com/apache/airflow/discussions/34948#discussioncomment-14153570
----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]