| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2015 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2015 The WebRTC Project Authors. All rights reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| 11 #include "webrtc/base/logsinks.h" | 11 #include "webrtc/rtc_base/logsinks.h" |
| 12 | 12 |
| 13 #include <iostream> | 13 #include <iostream> |
| 14 #include <string> | 14 #include <string> |
| 15 | 15 |
| 16 #include "webrtc/base/checks.h" | 16 #include "webrtc/rtc_base/checks.h" |
| 17 | 17 |
| 18 namespace rtc { | 18 namespace rtc { |
| 19 | 19 |
| 20 FileRotatingLogSink::FileRotatingLogSink(const std::string& log_dir_path, | 20 FileRotatingLogSink::FileRotatingLogSink(const std::string& log_dir_path, |
| 21 const std::string& log_prefix, | 21 const std::string& log_prefix, |
| 22 size_t max_log_size, | 22 size_t max_log_size, |
| 23 size_t num_log_files) | 23 size_t num_log_files) |
| 24 : FileRotatingLogSink(new FileRotatingStream(log_dir_path, | 24 : FileRotatingLogSink(new FileRotatingStream(log_dir_path, |
| 25 log_prefix, | 25 log_prefix, |
| 26 max_log_size, | 26 max_log_size, |
| (...skipping 28 matching lines...) Expand all Loading... |
| 55 const std::string& log_dir_path, | 55 const std::string& log_dir_path, |
| 56 size_t max_total_log_size) | 56 size_t max_total_log_size) |
| 57 : FileRotatingLogSink( | 57 : FileRotatingLogSink( |
| 58 new CallSessionFileRotatingStream(log_dir_path, max_total_log_size)) { | 58 new CallSessionFileRotatingStream(log_dir_path, max_total_log_size)) { |
| 59 } | 59 } |
| 60 | 60 |
| 61 CallSessionFileRotatingLogSink::~CallSessionFileRotatingLogSink() { | 61 CallSessionFileRotatingLogSink::~CallSessionFileRotatingLogSink() { |
| 62 } | 62 } |
| 63 | 63 |
| 64 } // namespace rtc | 64 } // namespace rtc |
| OLD | NEW |