Partial implementation of rtc::LogMessage in chromium overrides.
rtc::LogMessage::LogToDebug used in peerconnection_jni.cc. BUG=https://crbug.com/412276 R=glaznev@webrtc.org, niklas.enbom@webrtc.org Review URL: https://webrtc-codereview.appspot.com/25459004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@7186 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@ -164,6 +164,11 @@ DiagnosticLogMessage::~DiagnosticLogMessage() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// static
|
||||||
|
void LogMessage::LogToDebug(int min_sev) {
|
||||||
|
logging::SetMinLogLevel(min_sev);
|
||||||
|
}
|
||||||
|
|
||||||
// Note: this function is a copy from the overriden libjingle implementation.
|
// Note: this function is a copy from the overriden libjingle implementation.
|
||||||
void LogMultiline(LoggingSeverity level, const char* label, bool input,
|
void LogMultiline(LoggingSeverity level, const char* label, bool input,
|
||||||
const void* data, size_t len, bool hex_mode,
|
const void* data, size_t len, bool hex_mode,
|
||||||
|
@ -150,6 +150,11 @@ class LogMultilineState {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
class LogMessage {
|
||||||
|
public:
|
||||||
|
static void LogToDebug(int min_sev);
|
||||||
|
};
|
||||||
|
|
||||||
// When possible, pass optional state variable to track various data across
|
// When possible, pass optional state variable to track various data across
|
||||||
// multiple calls to LogMultiline. Otherwise, pass NULL.
|
// multiple calls to LogMultiline. Otherwise, pass NULL.
|
||||||
void LogMultiline(LoggingSeverity level, const char* label, bool input,
|
void LogMultiline(LoggingSeverity level, const char* label, bool input,
|
||||||
|
Reference in New Issue
Block a user