about summary refs log tree commit diff
path: root/vlogger.c
Commit message (Collapse)AuthorAgeFilesLines
* vlogger: behave like logger(1) if argv[0] is "logger"Duncan Overbruck2021-03-131-0/+5
|
* vlogger: pass empty tag to /etc/vlogger if tag is NULLDuncan Overbruck2021-03-131-1/+1
|
* vlogger: default to daemon.notice if linked as runit log serviceDuncan Overbruck2021-02-121-0/+2
|
* vlogger: force to use syslog if message arguments are givenDuncan Overbruck2019-08-251-0/+3
|
* vlogger: no need to duplicate the tag name from service pathDuncan Overbruck2019-08-251-1/+1
|
* vlogger: fix uninitialized value warnings found with clang scan-buildDuncan Overbruck2019-08-251-1/+1
|
* vlogger: use the same defaults as logger(1)Duncan Overbruck2019-08-251-4/+4
|
* vlogger: fix exit statusDuncaen2018-06-231-1/+1
|
* vlogger: add message argument for POSIX logger compatibilityDuncaen2018-06-231-1/+32
|
* vlogger: use static buffer and add -f flagDuncaen2018-06-221-11/+11
|
* vlogger: pass level and facility to /etc/vloggerDuncaen2018-06-221-1/+11
|
* vlogger: add logger(1) compatible -s and -i flag, and -S to force syslogDuncaen2018-06-221-4/+9
|
* vlogger: add default tagDuncaen2018-06-221-4/+1
|
* vlogger: a couple of bugfixes.Christopher Brannon2018-06-221-2/+3
| | | | | | | | | | | * Don't store the return value of getopt in a char. Storing in a char and comparing against -1 breaks on ARM, where char is unsigned. * The line argument to getline should point at a NULL char *. Otherwise, getline will treat *line as a pointer to an allocated buffer. With a little extra work, we could reuse the buffer, but always calling getline with *line == NULL is safe. Closes: #2 [via git-merge-pr]
* vlogger: style changes/cleanupDuncaen2018-06-201-23/+15
|
* vlogger: Fix symlinked ./run handling, make sure tag is initialized.Christopher Brannon2018-06-201-6/+25
| | | | | | | | | If vlogger is symlinked to foo/log/run for some service foo, it's invoked as ./run with $SERVICEDIR/foo/log as the cwd. So extract the service name from cwd if argv[0] is ./run. Also tag is initialized to the generic "vlogger" if it is not given on the command line and servicename couldn't be extracted from cwd.
* vlogger: exit if exec failsDuncaen2018-06-201-1/+4
|
* vlogger: strdup error checkDuncaen2018-06-201-4/+6
|
* vlogger: run /etc/vlogger with the same argv[0]Duncaen2018-06-201-2/+4
|
* vlogger: dont define _* namespaceDuncaen2018-06-201-1/+1
|
* Add vlogger(8)Duncaen2018-06-201-0/+111
vlogger(8) is a alternative to logger(1), by default it sends messages from stdin to syslog. The main reason to replace logger(1) is, that logger only connects once to the syslog socket in default mode and puts all messages into the void if syslog is not running at the time. logger(1) has a new `--socket-errors=on` mode which would work, but some void uses don't use syslog at all and in this case the log service would constantly restart. As a bonus vlogger(8) looks for /etc/vlogger and if its executable it just executes it and is replaced by it. This can be used to avoid syslog and just write all logs to files with svlogd(8) as example, without having to edit all log services.