Skip to main content
Solved

Logging of Cognite File Extractor


Hi

 

I have created a Cognite File Extractor from a local folder, and I want to create a log of all runs in a sub-folder. When changing the log level on the console and adding file as storage, nothing changes. 

 

from config file: 

logger:

  console:

    level: DEBUG

  file:

    level: INFO

    path: ".\logs\log.txt"  //also tried with full path

    retention: 7

 

Are there some more steps to get the logger to change?

I have run it both as local and admin.

 

Hedda

Best answer by roman.chesnokov

Hello @Nonstad, can you provide more details? What actions did you take, what were your expectations, and what were the results? Please note that the "level" feature in the console section is only applicable to logs displayed in the console, not those saved in a file. As far as I see the debug level provides additional heartbeat logs every 10 minutes. Also, be aware that you need to restart the extractor after modifyinig the configurastion.

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

4 replies

Johannes Hovda
Practitioner
Forum|alt.badge.img+3

Sorry, misread this and thought this was about Functions. Replied to that, but see now you were asking about something else. :). Didn’t see a way to delete a post...


  • Author
  • Active
  • 1 reply
  • July 3, 2023

I an currently just running the yaml file from my terminal, not using any CDF Function. The log file I try to write to is also locally stored. 


roman.chesnokov
Seasoned Practitioner
  • Seasoned Practitioner
  • 56 replies
  • Answer
  • July 14, 2023

Hello @Nonstad, can you provide more details? What actions did you take, what were your expectations, and what were the results? Please note that the "level" feature in the console section is only applicable to logs displayed in the console, not those saved in a file. As far as I see the debug level provides additional heartbeat logs every 10 minutes. Also, be aware that you need to restart the extractor after modifyinig the configurastion.


  • Seasoned Practitioner
  • 223 replies
  • July 26, 2023

Hi @Nonstad, did the above help you?


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