// Use the OSSTATUS_LOG family to log messages related to errors in Mac OS X // system routines that report status via an OSStatus or OSErr value. It is // similar to the PLOG family which operates on errno, but because there is no // global (or thread-local) OSStatus or OSErr value, the specific error must // be supplied as an argument to the OSSTATUS_LOG macro. The message logged // will contain the symbolic constant name corresponding to the status value, // along with the value itself. // // OSErr is just an older 16-bit form of the newer 32-bit OSStatus. Despite // the name, OSSTATUS_LOG can be used equally well for OSStatus and OSErr.
namespace logging {
// Returns a UTF8 description from an OS X Status error.
BASE_EXPORT std::string DescriptionFromOSStatus(OSStatus err);
class BASE_EXPORT OSStatusLogMessage : public logging::LogMessage {
public:
OSStatusLogMessage(constchar* file_path, int line,
LogSeverity severity,
OSStatus status);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.