slog2_set_verbosity()

Set the verbosity level for the entire buffer set

Synopsis:

#include <slog2.h>

int slog2_set_verbosity( slog2_buffer_t buffer,
                         uint8_t verbosity );

Since:

BlackBerry 10.0.0

Arguments:

buffer
A handle for a buffer in the buffer set whose verbosity you want to set. This must not be NULL (i.e., you can't set the verbosity of the default buffet in this way).
verbosity
The new verbosity setting; one of:
  • SLOG2_SHUTDOWN
  • SLOG2_CRITICAL
  • SLOG2_ERROR
  • SLOG2_WARNING
  • SLOG2_NOTICE
  • SLOG2_INFO
  • SLOG2_DEBUG1
  • SLOG2_DEBUG2

For more information, see the entry for slog2_register().

Library:

libslog2

Use the -l slog2 option to qcc to link against this library.

Description:

The slog2_set_verbosity() routine adjusts the verbosity of the entire buffer set that the given buffer belongs to.

Returns:

0 on success, or -1 if an error occurred.

Classification:

QNX Neutrino

Safety:  
Cancellation point No
Interrupt handler No
Signal handler Yes
Thread Yes

Last modified: 2014-06-24



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus