Solved

Logging of Cognite File Extractor

  • 3 July 2023
  • 4 replies
  • 48 views

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

icon

Best answer by roman.chesnokov 14 July 2023, 09:27

View original

4 replies

Userlevel 2
Badge +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...

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. 

Userlevel 3

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.

Userlevel 3

Hi @Nonstad, did the above help you?

Reply