-
-
Notifications
You must be signed in to change notification settings - Fork 30.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add "write" service to system_log (#11901)
* Add API to write error log * Move write_error api to system_log.write service call * Restore empty line
- Loading branch information
1 parent
390b727
commit 8332d4e
Showing
3 changed files
with
86 additions
and
12 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
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 |
---|---|---|
@@ -1,3 +1,15 @@ | ||
system_log: | ||
clear: | ||
description: Clear all log entries. | ||
write: | ||
description: Write log entry. | ||
fields: | ||
message: | ||
description: Message to log. [Required] | ||
example: Something went wrong | ||
level: | ||
description: "Log level: debug, info, warning, error, critical. Defaults to 'error'." | ||
example: debug | ||
logger: | ||
description: Logger name under which to log the message. Defaults to 'system_log.external'. | ||
example: mycomponent.myplatform |
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