mme_get_logging()

Get the verbosity log levels for specified logging modules

Synopsis:

#include <mme/mme.h>

int mme_get_logging( mme_hdl_t *hdl,
                     const char *name,
                     char *settings,
                     size_t size );

Arguments:

hdl
An MME connection handle.
name
A pointer to a string with the name of the logging module for which information is required. Set the string to NULL to retrieve information for all logging modules.
settings
A comma-separated list of the logging modules and their log levels. See Log level settings below.
size
The size, in bytes, of the buffer for the retrieved setting information.

Library:

mme

Description:

The function mme_get_logging() retrieves the logging verbosity levels for the specified MME logging modules. For more information about the logging modules and how to set their levels, see mme_set_logging().

Log level settings

The mme_get_logging() function writes logging level information into the buffer referenced by the settings argument. These settings are written as a comma-separated list with each item based on the following template:

module=verbosity level:flags

For example, if the metadata interface logging module has a verbosity level of 8 and its flags set to 0, mme_get_logging() writes the following to the buffer referenced by settings: mdi=8:0.

Logging modules

The strings that identify mme logging modules include:


Note: The above list is not definitive. The logging modules may change. To find out what logging module strings are valid, call mme_get_logging() with the string referenced by the name argument set to NULL.

Logging flags

The logging flags are bit masks that configure logging behavior:

Events

None delivered.

Blocking and validation

This function doesn't perform any validations, and doesn't block.

Returns:

0
Success.
-1
An error occurred (errno is set).

Classification:

QNX Neutrino

Safety:
Interrupt handler No
Signal handler No
Thread Yes

See also:

mme_set_logging()