OSLogSetFilterPolicy

Syntax

#include <cafe/os/OSSystemLog.h>

void OSLogSetFilterPolicy(u32 category, u32 minimumLevel);

Parameters

category This argument identifies the event category for which the filter policy is to be set. For more information, see System Logging Overview.
minimumLevel Minimum level below which all logged events are excluded.

Return Values

None.

Description

Sets the filter policy of logged events for a specific category. Excluded events are ignored, effectively dropped upon submission and do not occupy space in the circular event log.

NOTE:
Previously logged events that exist in the circular log with a level below minimumLevel will be excluded from retrieval via OSLogRetrieve or OSLogReport, unless the OS_LOG_RETRIEVAL_OPT_IGNORE_FILTERS_MASK option is specified.

Do Not Call From

None.

See Also

System Logging Overview
APP_TRACE_* Macros
OSLogBuffer
OSLogArgs
OSLogFunc
OSLogPrintf
OSLogReport
OSLogRetrieve
OSLogSaveCrashDump

Revision History

2013/05/08 Automated cleanup pass.
2012/05/23 Initial version.


CONFIDENTIAL