Skip to main content
Answer

logging module in Cognite Functions

  • December 17, 2024
  • 1 reply
  • 56 views

Anders Brakestad
Seasoned

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
Seasoned Practitioner
Forum|alt.badge.img+8
  • Seasoned Practitioner
  • Answer
  • December 18, 2024

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