Skip to main content
Anders Brakestad
Seasoned ⭐️⭐️⭐️
Seasoned ⭐️⭐️⭐️
December 17, 2024
Solved

logging module in Cognite Functions

  • December 17, 2024
  • 1 reply
  • 91 views

Our project has used the standard logging module for displaying information, warnings and errors in the Cognite Function log interface. This has worked on the Google tenant of our CDF (despite the warning in the docs), but no logs are shown in our new Azure tenant.

Do we need to update our code to a different module, or write our own logger class? Or will the logging module be compatible?

Best answer by Mithila Jayalath

@Anders Brakestad the logging module does not work consistently. You can use prints instead of using logging.

1 reply

Mithila Jayalath
Expert ⭐️⭐️⭐️⭐️
Expert ⭐️⭐️⭐️⭐️
December 18, 2024

@Anders Brakestad the logging module does not work consistently. You can use prints instead of using logging.