-
Notifications
You must be signed in to change notification settings - Fork 7.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/logv2' into 'master'
feat(log): Intermediate log refactoring See merge request espressif/esp-idf!30683
- Loading branch information
Showing
24 changed files
with
656 additions
and
284 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
menu "Log" | ||
|
||
choice BOOTLOADER_LOG_LEVEL | ||
bool "Bootloader log verbosity" | ||
default BOOTLOADER_LOG_LEVEL_INFO | ||
help | ||
Specify how much output to see in bootloader logs. | ||
|
||
config BOOTLOADER_LOG_LEVEL_NONE | ||
bool "No output" | ||
config BOOTLOADER_LOG_LEVEL_ERROR | ||
bool "Error" | ||
config BOOTLOADER_LOG_LEVEL_WARN | ||
bool "Warning" | ||
config BOOTLOADER_LOG_LEVEL_INFO | ||
bool "Info" | ||
config BOOTLOADER_LOG_LEVEL_DEBUG | ||
bool "Debug" | ||
config BOOTLOADER_LOG_LEVEL_VERBOSE | ||
bool "Verbose" | ||
endchoice | ||
|
||
config BOOTLOADER_LOG_LEVEL | ||
int | ||
default 0 if BOOTLOADER_LOG_LEVEL_NONE | ||
default 1 if BOOTLOADER_LOG_LEVEL_ERROR | ||
default 2 if BOOTLOADER_LOG_LEVEL_WARN | ||
default 3 if BOOTLOADER_LOG_LEVEL_INFO | ||
default 4 if BOOTLOADER_LOG_LEVEL_DEBUG | ||
default 5 if BOOTLOADER_LOG_LEVEL_VERBOSE | ||
|
||
orsource "Kconfig.log.format" | ||
|
||
endmenu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
menu "Format" | ||
|
||
config BOOTLOADER_LOG_COLORS | ||
bool "Color" | ||
default y | ||
help | ||
Use ANSI terminal colors in log output | ||
Enable ANSI terminal color codes. | ||
In order to view these, your terminal program must support ANSI color codes. | ||
|
||
choice BOOTLOADER_LOG_TIMESTAMP_SOURCE | ||
prompt "Timestamp" | ||
default BOOTLOADER_LOG_TIMESTAMP_SOURCE_CPU_TICKS | ||
help | ||
Choose what sort of timestamp is displayed in the log output: | ||
|
||
- "None" - The log will only contain the actual log messages themselves | ||
without any time-related information. Avoiding timestamps can help conserve | ||
processing power and memory. It might useful when you | ||
perform log analysis or debugging, sometimes it's more straightforward | ||
to work with logs that lack timestamps, especially if the time of occurrence | ||
is not critical for understanding the issues. | ||
"I log_test: info message" | ||
|
||
- "Milliseconds since boot" is calculated from the RTOS tick count multiplied | ||
by the tick period. This time will reset after a software reboot. | ||
"I (112500) log_test: info message" | ||
|
||
config BOOTLOADER_LOG_TIMESTAMP_SOURCE_NONE | ||
bool "None" | ||
depends on No # hide it now, turn it on final MR | ||
config BOOTLOADER_LOG_TIMESTAMP_SOURCE_CPU_TICKS | ||
bool "Milliseconds Since Boot" | ||
endchoice # BOOTLOADER_LOG_TIMESTAMP_SOURCE | ||
|
||
endmenu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
components/log/host_test/log_test/sdkconfig.ci.system_timestamp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
CONFIG_LOG_TIMESTAMP_SOURCE_SYSTEM=y |
Oops, something went wrong.