• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

LVGL logging

Q&A Forum › Category: ESP8266 › LVGL logging
0 Vote Up Vote Down
Steve Fisch asked 3 weeks ago

where is the log file which is mentioned in many of the lvgl sketches?

Question Tags: cyd lvgl
3 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 3 weeks ago

Hi.
Can you tell me the exact name of the file you’re referring to?
Regards,
Sara

0 Vote Up Vote Down
Steve Fisch answered 3 weeks ago

On p 61 of the LVGL book, here’s an excerpt from the code referring to logg9ing:

// If logging is enabled, it will inform the user about what is happening in the library
void log_print(lv_log_level_t level, const char * buf) {
LV_UNUSED(level);
Serial.println(buf);
Serial.flush();
}

Thanks,
Steve

0 Vote Up Vote Down
Sara Santos Staff answered 3 weeks ago

Hi.
 
That function is used for logging purposes in the LVGL library.
When logging is enabled in the LVGL configuration file (see the lv_conf.h configuration file lines of code 212 to 252), the library calls this function to output messages about what’s going on in the background.
 
Then, in the setup(), with the following line, we indicate that we want to use that function as a callback function for logging LVGL operations.

lv_log_register_print_cb(log_print);

 
I hope this helps.
 
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.