OSLogBuffer

Syntax

#include <cafe/os/OSSystemLog.h>

void OSLogBuffer(u32 category, u32 level, u32 options, void*  pBuffer, size_t size);

Parameters

category This argument identifies the category to which the logged event belongs. For more information, see System Logging Overview.
level Level at which event is logged. For more information, see System LoggingOverview.
options Bitmap of options providing metadata about the information being logged. Valid option masks include: OS_LOG_DATA_OPT_PRINT_FORMAT_MASK, OS_LOG_DATA_OPT_RAW_FORMAT_MASK, OS_LOG_DATA_OPT_FUNC_ENTER_MASK, OS_LOG_DATA_OPT_FUNC_EXIT_MASK. For information, see System Logging Overview.
pBuffer Pointer to data to be submitted to the log.
size Size of data referred to by pBuffer.

Return Values

None.

Description

This function can be used to log plain text when the OS_LOG_DATA_OPT_PRINT_FORMAT_MASK option is specified. It can also be used to log raw binary data when the OS_LOG_DATA_OPT_RAW_FORMAT_MASK options is specified.

Do Not Call From

None.

See Also

APP_TRACE_* Macros
OSLogArgs
OSLogFunc
OSLogPrintf
OSLogReport
OSLogRetrieve
OSLogSaveCrashDump
OSLogSetFilterPolicy

Revision History

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


CONFIDENTIAL