stumpless 2.2.0
载入中...
搜索中...
未找到
priority.h 文件参考

Priority value (PRIVAL) represents both the Facility and Severity values. 更多...

浏览该文件的源代码.

函数

int stumpless_prival_from_string (const char *string)
 Extract PRIVAL number (Facility and Severity) from the given string with the direct number or with two names divided with a period in the order: facility first, then severity ("<facility_descr>.<severity_descr>").
 

详细描述

Priority value (PRIVAL) represents both the Facility and Severity values.

自从
release v2.2.0

函数说明

◆ stumpless_prival_from_string()

int stumpless_prival_from_string ( const char * string)

Extract PRIVAL number (Facility and Severity) from the given string with the direct number or with two names divided with a period in the order: facility first, then severity ("<facility_descr>.<severity_descr>").

Thread Safety: MT-Safe This function is thread safe. A mutex is used to coordinate changes to the target while it is being read.

Async Signal Safety: AS-Unsafe lock This function is not safe to call from signal handlers due to the use of a non-reentrant lock to coordinate the read of the target.

Async Cancel Safety: AC-Unsafe lock This function is not safe to call from threads that may be asynchronously cancelled, due to the use of a lock that could be left locked..

自从
release v2.2.0
参数
stringThe string to extract the prival from.
返回
the PRIVAL number used for the severity and facility values of the logged entry, in the event of an error it returns -1.