Bug 8626 - logger: add support for the -i option
Summary: logger: add support for the -i option
Status: NEW
Alias: None
Product: Busybox
Classification: Unclassified
Component: Networking (show other bugs)
Version: unspecified
Hardware: All All
: P5 enhancement
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-21 21:39 UTC by Christopher Maynard
Modified: 2016-04-06 16:21 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:


Attachments
Short patch for bug #8626 add option -i to logger (624 bytes, patch)
2016-03-19 16:48 UTC, janovji3
Details
Patch for bug #8626 add option -i to logger (2.68 KB, patch)
2016-03-19 16:53 UTC, janovji3
Details
logger -i patch (2.63 KB, patch)
2016-04-06 16:21 UTC, janovji3
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christopher Maynard 2016-01-21 21:39:18 UTC
dhcpcd's dhcpcd-run-hooks.in:syslog()[1] expects logger to support the '-i' option.  It would be nice if busybox's logger supported it so dhcpcd's messages could be successfully logged.

From the logger man page[2]:

    -i     Log the PID of the logger process with each line.

[1]: http://roy.marples.name/projects/dhcpcd/artifact/388aaf84a4b9d16b
[2]: http://man7.org/linux/man-pages/man1/logger.1.html
Comment 1 janovji3 2016-03-19 16:48:47 UTC
Created attachment 6391 [details]
Short patch for bug #8626 add option -i to logger

Short patch adding -i option to logger.
Tested version 1.25.0.git .
Comment 2 janovji3 2016-03-19 16:53:09 UTC
Created attachment 6396 [details]
Patch for bug #8626 add option -i to logger

Add option -i to logger and can be enabled/disabled in menuconfig.
Modifications are inspired by syslogd.c code.
(If something wrong then sorry I use bugzilla first time :-) .)
Comment 3 janovji3 2016-04-06 16:21:28 UTC
Created attachment 6421 [details]
logger -i patch