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 April 12, 2018 | .Dd November 25, 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 | ||||
.Nd control system log | .Nd control system log | ||||
.Sh LIBRARY | .Sh LIBRARY | ||||
.Lb libc | .Lb libc | ||||
.Sh SYNOPSIS | .Sh SYNOPSIS | ||||
.In syslog.h | .In syslog.h | ||||
.In stdarg.h | |||||
.Ft void | .Ft void | ||||
.Fn syslog "int priority" "const char *message" "..." | .Fn syslog "int priority" "const char *message" "..." | ||||
.Ft void | .Ft void | ||||
.Fn vsyslog "int priority" "const char *message" "va_list args" | |||||
.Ft void | |||||
.Fn openlog "const char *ident" "int logopt" "int facility" | .Fn openlog "const char *ident" "int logopt" "int facility" | ||||
.Ft void | .Ft void | ||||
.Fn closelog void | .Fn closelog void | ||||
.Ft int | .Ft int | ||||
.Fn setlogmask "int maskpri" | .Fn setlogmask "int maskpri" | ||||
.In syslog.h | |||||
.In stdarg.h | |||||
.Ft void | |||||
.Fn vsyslog "int priority" "const char *message" "va_list args" | |||||
.Sh DESCRIPTION | .Sh DESCRIPTION | ||||
The | The | ||||
.Fn syslog | .Fn syslog | ||||
function | function | ||||
writes | writes | ||||
.Fa message | .Fa message | ||||
to the system message logger. | to the system message logger. | ||||
The message is then written to the system console, log files, | The message is then written to the system console, log files, | ||||
▲ Show 20 Lines • Show All 235 Lines • Show Last 20 Lines |