Skip to content

man vlogger: incorrect documentation regarding the default tag and facility #84

@jdbourbaki

Description

@jdbourbaki

The vlogger (8) man page) says:

-p pri
The pri can be facility.level or just facility.
...
The default is user.notice.

And later:

-t tag

Defines the openlog 3 ident which is used as prefix for each log message or passed as first argument to /etc/vlogger.

The default is the LOGNAME environment variable.

The statements about the default facility and tag are incorrect. In particular, the default tag does not in any way depend on the LOGNAME environment variable.

The actual defaults are:

Facility: "notice" unless vlogger detects that it was exec'd as "./run" from within the directory "runsvdir/service/log" where "runsvdir" is an arbitrary path and "service" an arbitrary directory name -- in that case the default facility is "daemon".

tag: if vlogger detects that it was exec'd as "./run" from within the directory "runsvdir/service/log" where "runsvdir" is an arbitrary path and "service" an arbitrary directory name then the default tag is the name of the service directory. Otherwise, if vlogger is calling /etc/vlogger then the default tag is an empty string, while if vlogger is logging to a socket then the default tag is the current username as reported by getlogin().

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions