bt-agent: add option to redirect stdout and stderr to syslog#57
Open
corviv wants to merge 1 commit intokhvzak:masterfrom
Open
bt-agent: add option to redirect stdout and stderr to syslog#57corviv wants to merge 1 commit intokhvzak:masterfrom
corviv wants to merge 1 commit intokhvzak:masterfrom
Conversation
Add handlers for g_print() and g_printerr() methods to redirect output to syslog. Add corresponding option. Signed-off-by: Victor Pushkarev <VAnPushkarev@salutedevices.com>
|
Can't we just pipe to |
Author
Hi @WhyNotHugo
It also integrates cleanly with systemd-journald because /dev/log is forwarded automatically. |
|
busybox includes logger(1). |
Author
|
Correct, busybox can include logger(1), but it’s an optional applet that many size-optimised Buildroot or container configs leave out (CONFIG_LOGGER option). So the option mainly removes a conditional dependency and gives tighter resource control, while staying completely optional. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add handlers for g_print() and g_printerr() methods to redirect output to syslog.
Add the corresponding option to use it.