mojave man page for os_log_create

Query: os_log_create

OS: mojave

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

os_log_create(3)					   BSD Library Functions Manual 					  os_log_create(3)

NAME
os_log_create -- create an object that tracks the state of logging for a given system.
SYNOPSIS
#include <os/log.h> os_log_t os_log_create(const char *subsystem, const char *category);
DESCRIPTION
Use os_log_create to create an object that can be passed to os_log(3) calls. Log messages to this object will be marked with the object's subsystem and category name. The behavior of log messages to this object can be configured using the log(1) command.
EXAMPLES
Create a new os_log_t object and log a message: #include <os/log.h> /* create a log object for the subsystem, specifically the "connections" category" */ os_log_t log = os_log_create("com.example.widget", "connections"); /* log a connection related message */ os_log(log, "connection state changed: %d interface: %s", if, interface);
SEE ALSO
log(1), os_log(3) Darwin June 1, 2019 Darwin
Related Man Pages
os_log_debug(3) - mojave
os_log_error(3) - mojave
os_log_fault(3) - mojave
os_trace_debug(3) - mojave
os_trace_fault(3) - mojave
Similar Topics in the Unix Linux Community
Instructions to Clear Data Cache in Safari, Chrome, Firefox, Opera Browsers (Pictures)
12-Core MacPro (2013) kernel_task over 1200%
UNIX tool on MacOS that can increase resolution of a file
Cannot extract libraries using sed
How can I direct messages from mac console.app to a log file?