This source file includes following definitions.
- status_
#include "base/mac/mac_logging.h"
#include <iomanip>
#if !defined(OS_IOS)
#include <CoreServices/CoreServices.h>
#endif
namespace logging {
OSStatusLogMessage::OSStatusLogMessage(const char* file_path,
int line,
LogSeverity severity,
OSStatus status)
: LogMessage(file_path, line, severity),
status_(status) {
}
OSStatusLogMessage::~OSStatusLogMessage() {
#if defined(OS_IOS)
stream() << ": " << status_;
#else
stream() << ": "
<< GetMacOSStatusErrorString(status_)
<< " ("
<< status_
<< ")";
#endif
}
}