-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add interfaces for logging service. (#154)
* Add interfaces for logging service. Signed-off-by: Lei Liu <[email protected]> Signed-off-by: Barry Xu <[email protected]>
- Loading branch information
Showing
6 changed files
with
44 additions
and
1 deletion.
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
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,14 @@ | ||
# All available logger levels; these correspond to the enum in rcutils/logger.h | ||
|
||
uint8 LOG_LEVEL_UNKNOWN = 0 | ||
uint8 LOG_LEVEL_DEBUG = 10 | ||
uint8 LOG_LEVEL_INFO = 20 | ||
uint8 LOG_LEVEL_WARN = 30 | ||
uint8 LOG_LEVEL_ERROR = 40 | ||
uint8 LOG_LEVEL_FATAL = 50 | ||
|
||
# The logger name. | ||
string name | ||
|
||
# The logger level | ||
uint32 level |
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,5 @@ | ||
# True when succeed, false when failed. | ||
bool successful | ||
|
||
# Reason why the setting was either successful or a failure. | ||
string reason |
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,7 @@ | ||
# A list of logger names to get. | ||
string[] names | ||
|
||
--- | ||
# List of logger levels which is the same order as the provided names. If a | ||
# logger was not yet set, the value will have 'unknown' as the value. | ||
LoggerLevel[] levels |
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,6 @@ | ||
# A list of loggers to set. | ||
LoggerLevel[] levels | ||
|
||
--- | ||
# Indicates whether setting each logger succeeded or not and why. | ||
SetLoggerLevelsResult[] results |