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

Filters that can be used to control which entries are sent to targets at runtime. 更多...

浏览该文件的源代码.

函数

bool stumpless_mask_filter (const struct stumpless_target *target, const struct stumpless_entry *entry)
 Compares the severity of the entry to the current mask of the target, and only passes the entry if the mask bit corresponding to the severity is set.
 

详细描述

Filters that can be used to control which entries are sent to targets at runtime.

自从
release v2.1.0

函数说明

◆ stumpless_mask_filter()

bool stumpless_mask_filter ( const struct stumpless_target * target,
const struct stumpless_entry * entry )

Compares the severity of the entry to the current mask of the target, and only passes the entry if the mask bit corresponding to the severity is set.

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.1.0
参数
targetThe target that the entry will be sent to if it passes.
entryThe entry that is being submitted to the target.
返回
true if the severity of the entry is set in the target's mask, false otherwise.