aboutsummaryrefslogtreecommitdiffstats
path: root/src/daemontools-extras/s6-log.c
Commit message (Collapse)AuthorAgeFilesLines
* Seriously clean up s6-log; add Rperiod for periodic log rotations.Laurent Bercot2025-07-261-66/+87
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Fix small UB when no selection in s6-logLaurent Bercot2023-12-181-1/+1
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Defork s6-logLaurent Bercot2023-09-121-31/+17
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Add -t lastlinetimeout option to s6-logLaurent Bercot2023-05-261-31/+40
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* s6-log: add p directive to add a prefix to every lineLaurent Bercot2022-12-071-17/+48
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Adapt to skalibs-2.13.0.0Laurent Bercot2022-11-291-1/+1
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* s6-log: restart event loop when closing stdin on signalLaurent Bercot2021-12-241-5/+5
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* s6-log: clarify last_stdin logicLaurent Bercot2021-12-241-13/+6
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* skalibs-2.11.0.0 API changeLaurent Bercot2021-08-091-19/+18
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* bugfix: rare fd leak in s6-logLaurent Bercot2021-05-061-1/+7
|
* s6-log: Recommend the usage of a -- argument separatorMira Ressel2021-03-131-1/+1
| | | | | | Logging scripts will commonly start with a -, which will trigger a parsing error that might not be obvious to users when no argument separator is used.
* bugfix: make s6-log -l actually splitLaurent Bercot2021-01-221-15/+30
|
* Make s6-log respect umaskLaurent Bercot2021-01-031-22/+13
|
* Remove deprecated options/directives from s6-logLaurent Bercot2021-01-031-13/+4
|
* Fix build against skalibs-2.10.0.0Laurent Bercot2020-12-021-5/+6
|
* Adapt to new exec.hLaurent Bercot2020-11-281-2/+2
|
* Make execline dependency optionalLaurent Bercot2019-12-231-0/+12
| | | | | | | | | | | | | | | | This includes: - adding a configure option to disable execline support - duplicating el_semicolon() and el_getstrict() into the s6 library when execline is disabled at build time, making a compat shim and using it where needed (s6-svlisten, s6-ftrig-listen) - Creating alternatives for execlineb script spawning: * s6-log: '?' directive (done in the previous commit) * s6-notifyoncheck: require hardcoding the check in ./data/check * s6-ipcserver-access: no support for exec files, add a warning - Updating the relevant parts of the doc --enable-execline will remain the default, and whiners can choke on their tears.
* Add ?processor support to s6-logLaurent Bercot2019-12-231-1/+7
|
* Adapt to new stopwatch APILaurent Bercot2019-09-061-2/+2
|
* Separate wall clocks from stopwatchesLaurent Bercot2019-09-041-11/+17
|
* Accept empty regexes even on BSDsLaurent Bercot2019-05-111-1/+1
|
* Revert truncate() change in s6-log (thanks obarun for the report)Laurent Bercot2019-01-291-1/+3
|
* Add readiness notification to s6-log, and 8kB default on -lLaurent Bercot2019-01-151-6/+20
|
* Adapt to skalibs-2.7.0.0Laurent Bercot2018-07-211-8/+5
|
* bugfix: s6-log: use off_t instead of size_t for archive file sizeLaurent Bercot2017-10-171-11/+10
| | | | Also clarify internal names, to make CalimeroTechnik happy. ;)
* Switch to xpathexec_*Laurent Bercot2017-08-281-2/+1
|
* Propagate fd_close() changes, fix deps for ftrigr_updateb()Laurent Bercot2017-07-161-8/+0
|
* Fix a few omissions in the adaptationLaurent Bercot2017-03-121-1/+1
|
* Adapt to skalibs-2.5.0.0Laurent Bercot2017-03-121-70/+70
|
* Write a warning to stderr when s6-log closes the stdout streamLaurent Bercot2017-01-201-0/+1
|
* Types fix, first passLaurent Bercot2017-01-121-30/+31
|
* Increase s6-log "s" limit to 256MBLaurent Bercot2016-11-211-1/+1
|
* - add -g option to s6-envuidgidLaurent Bercot2015-11-041-19/+13
| | | | - set s6-log processor wd to the logdir
* s6-log bugfix: only finalize() and exit when all rotations have completed ↵Laurent Bercot2015-10-141-3/+5
| | | | successfully
* - minor bugfix in s6-log (correct return when stat() fails)v2.2.1.1Laurent Bercot2015-10-051-1/+1
| | | | | | | - remove fucking -Bsymbolic - add s6-setsid to stage 1 example - prepare shutdown functionality for s6-svscan - version: 2.2.1.1
* Make s6-log exit cleanly on SIGHUP even with -pLaurent Bercot2015-06-181-2/+2
|
* This is also true for ISO timestamps.Laurent Bercot2015-03-101-1/+1
|
* s6-log needs a new timestamp on every lineLaurent Bercot2015-03-101-0/+1
|
* Bugfix: wrong selection amount in s6-log's second pass - thanks Patrick ↵Laurent Bercot2015-02-241-1/+1
| | | | Mahoney.
* Bugfix: s6-log wasn't parsing regexps correctly (!)Laurent Bercot2015-02-171-1/+1
| | | | | Thanks to Roy Lanek. version: 2.1.1.1
* - cosmetic fixes in s6-fdholderdLaurent Bercot2015-02-081-3/+3
| | | | - timestamp length bugfix in s6-log
* - s6-log overhaul (more stack, less heap), with new directivesLaurent Bercot2015-02-071-447/+480
| | | | | - related doc update - version: 2.1.1.0 rc
* - added the s6_fdholder library to libs6. (Nothing useful yet.)Laurent Bercot2015-01-191-1/+2
| | | | | | | | | | - fixed execline invocation in s6-log with slashpackage - integrated s6_svc_main.c's functionality into s6-svscanctl and deleted it - integrated Olivier Brunel's suggestions for wstat report in supervise/status - minor fixes to s6-supervise's status reports - separated sigaction calls in ftrigw_notifyb, this spares a few syscalls in s6-supervise - updated doc to reflect the changes - version bumped to 2.1.0.0 because API breakage (./finish, s6-svstat)
* Initial commitLaurent Bercot2014-12-051-0/+1265