Logger class in a scheduled job #3567
-
Good evening, Thank you |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
@pnicosia80 Oqtane is multi-tenant... so the challenge in a scheduled job is that there is no context... which means that the framework is unable to determine the tenant/site on its own. This is a problem because the LogManager service (and most other Oqtane services) requires this context in order to log information to the database for the appropriate site. So in this scenario you will need to explicitly provide the context: ie.
|
Beta Was this translation helpful? Give feedback.
@pnicosia80 Oqtane is multi-tenant... so the challenge in a scheduled job is that there is no context... which means that the framework is unable to determine the tenant/site on its own. This is a problem because the LogManager service (and most other Oqtane services) requires this context in order to log information to the database for the appropriate site. So in this scenario you will need to explicitly provide the context:
ie.