Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | vlogger: behave like logger(1) if argv[0] is "logger" | Duncan Overbruck | 2021-03-13 | 1 | -0/+5 |
| | |||||
* | vlogger: pass empty tag to /etc/vlogger if tag is NULL | Duncan Overbruck | 2021-03-13 | 1 | -1/+1 |
| | |||||
* | vlogger: default to daemon.notice if linked as runit log service | Duncan Overbruck | 2021-02-12 | 1 | -0/+2 |
| | |||||
* | vlogger: force to use syslog if message arguments are given | Duncan Overbruck | 2019-08-25 | 1 | -0/+3 |
| | |||||
* | vlogger: no need to duplicate the tag name from service path | Duncan Overbruck | 2019-08-25 | 1 | -1/+1 |
| | |||||
* | vlogger: fix uninitialized value warnings found with clang scan-build | Duncan Overbruck | 2019-08-25 | 1 | -1/+1 |
| | |||||
* | vlogger: use the same defaults as logger(1) | Duncan Overbruck | 2019-08-25 | 1 | -4/+4 |
| | |||||
* | vlogger: fix exit status | Duncaen | 2018-06-23 | 1 | -1/+1 |
| | |||||
* | vlogger: add message argument for POSIX logger compatibility | Duncaen | 2018-06-23 | 1 | -1/+32 |
| | |||||
* | vlogger: use static buffer and add -f flag | Duncaen | 2018-06-22 | 1 | -11/+11 |
| | |||||
* | vlogger: pass level and facility to /etc/vlogger | Duncaen | 2018-06-22 | 1 | -1/+11 |
| | |||||
* | vlogger: add logger(1) compatible -s and -i flag, and -S to force syslog | Duncaen | 2018-06-22 | 1 | -4/+9 |
| | |||||
* | vlogger: add default tag | Duncaen | 2018-06-22 | 1 | -4/+1 |
| | |||||
* | vlogger: a couple of bugfixes. | Christopher Brannon | 2018-06-22 | 1 | -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/cleanup | Duncaen | 2018-06-20 | 1 | -23/+15 |
| | |||||
* | vlogger: Fix symlinked ./run handling, make sure tag is initialized. | Christopher Brannon | 2018-06-20 | 1 | -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 fails | Duncaen | 2018-06-20 | 1 | -1/+4 |
| | |||||
* | vlogger: strdup error check | Duncaen | 2018-06-20 | 1 | -4/+6 |
| | |||||
* | vlogger: run /etc/vlogger with the same argv[0] | Duncaen | 2018-06-20 | 1 | -2/+4 |
| | |||||
* | vlogger: dont define _* namespace | Duncaen | 2018-06-20 | 1 | -1/+1 |
| | |||||
* | Add vlogger(8) | Duncaen | 2018-06-20 | 1 | -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. |