GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
DC_CONTEXT_SET_LOGLEVEL(3) FreeBSD Library Functions Manual DC_CONTEXT_SET_LOGLEVEL(3)

dc_context_set_loglevelset the logging level for a dive computer context

library “libdivecomputer”

#include <libdivecomputer/context.h>

dc_status_t
dc_context_set_loglevel(dc_context_t *context, dc_loglevel_t loglevel);

Set the log level required to raise a logging event with the dc_context_set_logfunc(3) callback. Operates on a dive computer context created with dc_context_new(3). The log levels are ordered as follows:

By setting, for exammple, DC_LOGLEVEL_INFO, all events of DC_LOGLEVEL_ERROR, DC_LOGLEVEL_WARNING, and DC_LOGLEVEL_INFO will be reported via the callback in dc_context_set_logfunc(3).

Returns DC_STATUS_OK on setting the log level, DC_STATUS_INVALIDARGS if context is NULL, or another error code on failure.

dc_context_new(3), dc_context_set_logfunc(3)

The library “libdivecomputer” library was written by Jef Driesen, jef@libdivecomputer.org. The manpages were written by
Kristaps Dzonsons, kristaps@bsd.lv.

January 5, 2017 FreeBSD 14.3-RELEASE

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.