Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1180)

Unified Diff: remoting/host/logging_mac.cc

Issue 2497833002: support multiple log message handlers in base/logging.h (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/client/plugin/chromoting_instance.cc ('k') | remoting/host/native_messaging/log_message_handler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/logging_mac.cc
diff --git a/remoting/host/logging_mac.cc b/remoting/host/logging_mac.cc
index 39e007d409b528d5fe9b38307afe9ebc84dd8d94..327303daf140c29599b92a1063a429a36d091763 100644
--- a/remoting/host/logging_mac.cc
+++ b/remoting/host/logging_mac.cc
@@ -35,9 +35,8 @@ typedef base::ScopedGeneric<aslmsg, ScopedAslMsgTraits> ScopedAslMsg;
// syslog -k Facility org.chromium.chromoting
bool LogMessageToAsl(
logging::LogSeverity severity,
- const char* file,
+ const std::string& file,
int line,
- size_t message_start,
const std::string& message) {
int level;
switch(severity) {
@@ -76,7 +75,7 @@ bool LogMessageToAsl(
return false;
if (asl_set(asl_message.get(), ASL_KEY_MSG,
- message.c_str() + message_start) != 0)
+ message.c_str()) != 0)
return false;
asl_send(nullptr, asl_message.get());
@@ -94,7 +93,7 @@ void InitHostLogging() {
logging::InitLogging(settings);
// Write logs to syslog as well.
- logging::SetLogMessageHandler(LogMessageToAsl);
+ logging::AddLogMessageHandler(LogMessageToAsl);
}
} // namespace remoting
« no previous file with comments | « remoting/client/plugin/chromoting_instance.cc ('k') | remoting/host/native_messaging/log_message_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698