/* * Copyright 2015 The WebRTC Project Authors. All rights reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributing project authors may * be found in the AUTHORS file in the root of the source tree.
*/
void FileRotatingLogSink::OnLogMessage(absl::string_view message) { if (!stream_->IsOpen()) {
std::fprintf(stderr, "Init() must be called before adding this sink.\n"); return;
}
stream_->Write(message.data(), message.size());
}
void FileRotatingLogSink::OnLogMessage(absl::string_view message,
LoggingSeverity sev, constchar* tag) { if (!stream_->IsOpen()) {
std::fprintf(stderr, "Init() must be called before adding this sink.\n"); return;
}
stream_->Write(tag, strlen(tag));
stream_->Write(": ", 2);
stream_->Write(message.data(), message.size());
}
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.