|
| LinphoneLoggingService * | linphone_logging_service_get (void) |
| |
| LinphoneLoggingService * | linphone_logging_service_ref (LinphoneLoggingService *log_service) |
| |
| void | linphone_logging_service_unref (LinphoneLoggingService *log_service) |
| |
| void | linphone_logging_service_add_callbacks (LinphoneLoggingService *log_service, LinphoneLoggingServiceCbs *cbs) |
| |
| void | linphone_logging_service_remove_callbacks (LinphoneLoggingService *log_service, LinphoneLoggingServiceCbs *cbs) |
| |
| LinphoneLoggingServiceCbs * | linphone_logging_service_get_current_callbacks (const LinphoneLoggingService *log_service) |
| |
| void | linphone_logging_service_set_log_level (LinphoneLoggingService *log_service, LinphoneLogLevel level) |
| |
| void | linphone_logging_service_set_log_level_mask (LinphoneLoggingService *log_service, unsigned int mask) |
| |
| unsigned int | linphone_logging_service_get_log_level_mask (const LinphoneLoggingService *log_service) |
| |
| void | linphone_logging_service_set_log_file (LinphoneLoggingService *log_service, const char *dir, const char *filename, size_t max_size) |
| |
| void | linphone_logging_service_set_domain (LinphoneLoggingService *log_service, const char *domain) |
| |
| const char * | linphone_logging_service_get_domain (LinphoneLoggingService *log_service) |
| |
| void | linphone_logging_service_debug (LinphoneLoggingService *log_service, const char *message) |
| |
| void | linphone_logging_service_trace (LinphoneLoggingService *log_service, const char *message) |
| |
| void | linphone_logging_service_message (LinphoneLoggingService *log_service, const char *message) |
| |
| void | linphone_logging_service_warning (LinphoneLoggingService *log_service, const char *message) |
| |
| void | linphone_logging_service_error (LinphoneLoggingService *log_service, const char *message) |
| |
| void | linphone_logging_service_fatal (LinphoneLoggingService *log_service, const char *message) |
| |
| void | linphone_logging_service_enable_stack_trace_dumps (LinphoneLoggingService *log_service, bool_t enable) |
| |
| LinphoneLoggingServiceCbs * | linphone_logging_service_cbs_ref (LinphoneLoggingServiceCbs *cbs) |
| |
| void | linphone_logging_service_cbs_unref (LinphoneLoggingServiceCbs *cbs) |
| |
| void | linphone_logging_service_cbs_set_log_message_written (LinphoneLoggingServiceCbs *cbs, LinphoneLoggingServiceCbsLogMessageWrittenCb cb) |
| |
| LinphoneLoggingServiceCbsLogMessageWrittenCb | linphone_logging_service_cbs_get_log_message_written (const LinphoneLoggingServiceCbs *cbs) |
| |
| void | linphone_logging_service_cbs_set_user_data (LinphoneLoggingServiceCbs *cbs, void *user_data) |
| |
| void * | linphone_logging_service_cbs_get_user_data (const LinphoneLoggingServiceCbs *cbs) |
| |
| MS2_DEPRECATED LinphoneLoggingServiceCbs * | linphone_logging_service_get_callbacks (const LinphoneLoggingService *log_service) |
| |
Logging service of Linphone.
◆ LinphoneLoggingService
◆ LinphoneLoggingServiceCbsLogMessageWrittenCb
Type of callbacks called each time liblinphone write a log message.
- Parameters
-
| log_service | A pointer on the logging service singleton. |
| domain | A string describing which sub-library of liblinphone the message is coming from. |
| level | Verbosity LinphoneLogLevel of the message. |
| message | Content of the message. |
◆ _LinphoneLogLevel
Verbosity levels of log messages.
| Enumerator |
|---|
| LinphoneLogLevelDebug | Level for debug messages.
|
| LinphoneLogLevelTrace | Level for traces.
|
| LinphoneLogLevelMessage | Level for information messages.
|
| LinphoneLogLevelWarning | Level for warning messages.
|
| LinphoneLogLevelError | Level for error messages.
|
| LinphoneLogLevelFatal | Level for fatal error messages.
|
◆ linphone_logging_service_add_callbacks()
Adds a callback object to the list of listeners.
- Parameters
-
◆ linphone_logging_service_cbs_get_log_message_written()
◆ linphone_logging_service_cbs_get_user_data()
Gets the user_data pointer back.
- Parameters
-
- Returns
- the user data pointer.
◆ linphone_logging_service_cbs_ref()
◆ linphone_logging_service_cbs_set_log_message_written()
Sets the callback to call each time liblinphone writes a log message.
- Parameters
-
◆ linphone_logging_service_cbs_set_user_data()
◆ linphone_logging_service_cbs_unref()
Decreases the reference counter.
The object is automatically destroyed once the counter reach 0.
- Parameters
-
◆ linphone_logging_service_debug()
Write a LinphoneLogLevelDebug message to the logs.
- Parameters
-
◆ linphone_logging_service_enable_stack_trace_dumps()
| void linphone_logging_service_enable_stack_trace_dumps |
( |
LinphoneLoggingService * |
log_service, |
|
|
bool_t |
enable |
|
) |
| |
Allow Linphone to set handlers for catching exceptions and write the stack trace into log.
Available for Windows. It keeps old handlers.
- Parameters
-
| log_service | the LinphoneLoggingService object |
| enable | if TRUE global handlers will be prepend by the logger handlers. By default, it is FALSE. |
◆ linphone_logging_service_error()
Write a LinphoneLogLevelError message to the logs.
- Parameters
-
◆ linphone_logging_service_fatal()
Write a LinphoneLogLevelFatal message to the logs.
- Parameters
-
◆ linphone_logging_service_get()
Gets the singleton logging service object.
The singleton is automatically instantiated if it hasn't been done yet.
- Returns
- A pointer on the LinphoneLoggingService singleton.
◆ linphone_logging_service_get_callbacks()
Gets the logging service listener.
- Parameters
-
- Deprecated:
- 19/02/2019 Use add_callbacks / remove_callbacks instead
◆ linphone_logging_service_get_current_callbacks()
Returns the current callbacks being called while iterating on callbacks.
- Parameters
-
- Returns
- A pointer to the current LinphoneLoggingServiceCbs object
◆ linphone_logging_service_get_domain()
◆ linphone_logging_service_get_log_level_mask()
Gets the log level mask.
- Parameters
-
- Returns
- the log level mask
◆ linphone_logging_service_message()
Write a LinphoneLogLevelMessage message to the logs.
- Parameters
-
◆ linphone_logging_service_ref()
◆ linphone_logging_service_remove_callbacks()
Removes a callback object from the list of listeners.
- Parameters
-
◆ linphone_logging_service_set_domain()
Set the domain where application logs are written (for example with linphone_logging_service_message()).
- Parameters
-
- Note
- The domain is mandatory to write logs. This needs to be set before setting the log level.
◆ linphone_logging_service_set_log_file()
| void linphone_logging_service_set_log_file |
( |
LinphoneLoggingService * |
log_service, |
|
|
const char * |
dir, |
|
|
const char * |
filename, |
|
|
size_t |
max_size |
|
) |
| |
Enables logging in a file.
That function enables an internal log handler that writes log messages in log-rotated files.
- Parameters
-
| log_service | the LinphoneLoggingService object |
| dir | Directory where to create the distinct parts of the log. |
| filename | Name of the log file. |
| max_size | The maximal size of each part of the log. The log rotating is triggered each time the currently opened log part reach that limit. |
◆ linphone_logging_service_set_log_level()
Set the verbosity of the log.
For instance, a level of LinphoneLogLevelMessage will let pass fatal, error, warning and message-typed messages whereas trace and debug messages will be dumped out.
- Parameters
-
◆ linphone_logging_service_set_log_level_mask()
Sets the types of messages that will be authorized to be written in the log.
- Parameters
-
- Note
- Calling that function reset the log level that has been specified by linphone_logging_service_set_log_level().
◆ linphone_logging_service_trace()
Write a LinphoneLogLevelTrace message to the logs.
- Parameters
-
◆ linphone_logging_service_unref()
Decreases the reference counter and destroy the object if the counter reaches 0.
- Parameters
-
◆ linphone_logging_service_warning()
Write a LinphoneLogLevelWarning message to the logs.
- Parameters
-