Skip to main content
Solved

logging module in Cognite Functions

  • December 17, 2024
  • 1 reply
  • 26 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.

View original
Did this topic help you find an answer to your question?

1 reply

Mithila Jayalath
Seasoned Practitioner
Forum|alt.badge.img
  • Seasoned Practitioner
  • 369 replies
  • Answer
  • December 18, 2024

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


Reply


Cookie Policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings