Changeset View
Changeset View
Standalone View
Standalone View
lib/libc/gen/syslog.3
Show All 22 Lines | |||||
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||||
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||||
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||||
.\" SUCH DAMAGE. | .\" SUCH DAMAGE. | ||||
.\" | .\" | ||||
.\" @(#)syslog.3 8.1 (Berkeley) 6/4/93 | .\" @(#)syslog.3 8.1 (Berkeley) 6/4/93 | ||||
.\" $FreeBSD$ | .\" $FreeBSD$ | ||||
.\" | .\" | ||||
.Dd November 5, 2017 | .Dd April 3, 2018 | ||||
.Dt SYSLOG 3 | .Dt SYSLOG 3 | ||||
.Os | .Os | ||||
.Sh NAME | .Sh NAME | ||||
.Nm syslog , | .Nm syslog , | ||||
.Nm vsyslog , | .Nm vsyslog , | ||||
.Nm openlog , | .Nm openlog , | ||||
.Nm closelog , | .Nm closelog , | ||||
.Nm setlogmask | .Nm setlogmask | ||||
▲ Show 20 Lines • Show All 111 Lines • ▼ Show 20 Lines | |||||
Normally the open is delayed until the first message is logged. | Normally the open is delayed until the first message is logged. | ||||
Useful for programs that need to manage the order in which file | Useful for programs that need to manage the order in which file | ||||
descriptors are allocated. | descriptors are allocated. | ||||
.It Dv LOG_PERROR | .It Dv LOG_PERROR | ||||
Write the message to standard error output as well to the system log. | Write the message to standard error output as well to the system log. | ||||
.It Dv LOG_PID | .It Dv LOG_PID | ||||
Log the process id with each message: useful for identifying | Log the process id with each message: useful for identifying | ||||
instantiations of daemons. | instantiations of daemons. | ||||
On | |||||
.Fx , | |||||
this option is enabled by default. | |||||
.El | .El | ||||
.Pp | .Pp | ||||
The | The | ||||
.Fa facility | .Fa facility | ||||
argument encodes a default facility to be assigned to all messages | argument encodes a default facility to be assigned to all messages | ||||
that do not have an explicit facility encoded: | that do not have an explicit facility encoded: | ||||
.Bl -tag -width LOG_AUTHPRIV | .Bl -tag -width LOG_AUTHPRIV | ||||
.It Dv LOG_AUTH | .It Dv LOG_AUTH | ||||
▲ Show 20 Lines • Show All 129 Lines • Show Last 20 Lines |