-
-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add log format documentation to the book #785
Conversation
Just mention that it can be passed as |
|
||
There are several metadata specifiers available that can be used in a format string. | ||
|
||
#### Log - `{s}` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#### Log - `{s}` | |
### Log - `{s}` |
I think a 3-# heading is correct here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I made these level-4 intentionally because it looks better in the book.
} | ||
``` | ||
|
||
#### Timestamp - `{t}` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think #789 means we need some more entries in here now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not really, the {t}
specifier prints whatever defmt::timestamp!
prints
This looks great, thank you so much! Just a couple of minor notes. |
Co-authored-by: Jonathan Pallant <jonathan.pallant@ferrous-systems.com>
308378d
to
b3adcd6
Compare
This PR adds a chapter to the
defmt
book about customizing logs using the log format functionality. This PR shouldn't be merged until #783 is merged.