Kconfig 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. menu "Log output"
  2. choice LOG_DEFAULT_LEVEL
  3. bool "Default log verbosity"
  4. default LOG_DEFAULT_LEVEL_INFO
  5. help
  6. Specify how much output to see in logs by default.
  7. You can set lower verbosity level at runtime using
  8. esp_log_level_set function.
  9. Note that this setting limits which log statements
  10. are compiled into the program. So setting this to, say,
  11. "Warning" would mean that changing log level to "Debug"
  12. at runtime will not be possible.
  13. config LOG_DEFAULT_LEVEL_NONE
  14. bool "No output"
  15. config LOG_DEFAULT_LEVEL_ERROR
  16. bool "Error"
  17. config LOG_DEFAULT_LEVEL_WARN
  18. bool "Warning"
  19. config LOG_DEFAULT_LEVEL_INFO
  20. bool "Info"
  21. config LOG_DEFAULT_LEVEL_DEBUG
  22. bool "Debug"
  23. config LOG_DEFAULT_LEVEL_VERBOSE
  24. bool "Verbose"
  25. endchoice
  26. config LOG_DEFAULT_LEVEL
  27. int
  28. default 0 if LOG_DEFAULT_LEVEL_NONE
  29. default 1 if LOG_DEFAULT_LEVEL_ERROR
  30. default 2 if LOG_DEFAULT_LEVEL_WARN
  31. default 3 if LOG_DEFAULT_LEVEL_INFO
  32. default 4 if LOG_DEFAULT_LEVEL_DEBUG
  33. default 5 if LOG_DEFAULT_LEVEL_VERBOSE
  34. config LOG_COLORS
  35. bool "Use ANSI terminal colors in log output"
  36. default "y"
  37. help
  38. Enable ANSI terminal color codes in bootloader output.
  39. In order to view these, your terminal program must support ANSI color codes.
  40. choice LOG_TIMESTAMP_SOURCE
  41. prompt "Log Timestamps"
  42. default LOG_TIMESTAMP_SOURCE_RTOS
  43. help
  44. Choose what sort of timestamp is displayed in the log output:
  45. - Milliseconds since boot is calulated from the RTOS tick count multiplied
  46. by the tick period. This time will reset after a software reboot.
  47. e.g. (90000)
  48. - System time is taken from POSIX time functions which use the ESP32's
  49. RTC and FRC1 timers to maintain an accurate time. The system time is
  50. initialized to 0 on startup, it can be set with an SNTP sync, or with
  51. POSIX time functions. This time will not reset after a software reboot.
  52. e.g. (00:01:30.000)
  53. - NOTE: Currently this will not get used in logging from binary blobs
  54. (i.e WiFi & Bluetooth libraries), these will always print
  55. milliseconds since boot.
  56. config LOG_TIMESTAMP_SOURCE_RTOS
  57. bool "Milliseconds Since Boot"
  58. config LOG_TIMESTAMP_SOURCE_SYSTEM
  59. bool "System Time"
  60. endchoice
  61. endmenu