Skip to content
Snippets Groups Projects
Commit 8cb7c042 authored by Simon Glass's avatar Simon Glass
Browse files

log: Add documentation for commands and formatting


Add some notes about recent new features.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
parent aa4e0e00
No related branches found
No related tags found
No related merge requests found
......@@ -68,6 +68,19 @@ If CONFIG_LOG is not set, then no logging will be available.
The above have SPL versions also, e.g. CONFIG_SPL_MAX_LOG_LEVEL.
Log commands
------------
The 'log' command provides access to several features:
level - access the default log level
format - access the console log format
rec - output a log record
test - run tests
Type 'help log' for details.
Using DEBUG
-----------
......@@ -94,6 +107,20 @@ enabled or disabled independently:
console - goes to stdout
Log format
----------
You can control the log format using the 'log format' command. The basic
format is:
LEVEL.category,file.c:123-func() message
In the above, file.c:123 is the filename where the log record was generated and
func() is the function name. By default ('log format default') only the
function name and message are displayed on the console. You can control which
fields are present, but not the field order.
Filters
-------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment