| 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 #ifndef WEBRTC_RTC_BASE_LOGSINKS_H_ | 11 #ifndef WEBRTC_RTC_BASE_LOGSINKS_H_ |
| 12 #define WEBRTC_RTC_BASE_LOGSINKS_H_ | 12 #define WEBRTC_RTC_BASE_LOGSINKS_H_ |
| 13 | 13 |
| 14 #include <memory> | 14 #include <memory> |
| 15 #include <string> | 15 #include <string> |
| 16 | 16 |
| 17 #include "webrtc/base/constructormagic.h" | 17 #include "webrtc/rtc_base/constructormagic.h" |
| 18 #include "webrtc/base/filerotatingstream.h" | 18 #include "webrtc/rtc_base/filerotatingstream.h" |
| 19 #include "webrtc/base/logging.h" | 19 #include "webrtc/rtc_base/logging.h" |
| 20 | 20 |
| 21 namespace rtc { | 21 namespace rtc { |
| 22 | 22 |
| 23 // Log sink that uses a FileRotatingStream to write to disk. | 23 // Log sink that uses a FileRotatingStream to write to disk. |
| 24 // Init() must be called before adding this sink. | 24 // Init() must be called before adding this sink. |
| 25 class FileRotatingLogSink : public LogSink { | 25 class FileRotatingLogSink : public LogSink { |
| 26 public: | 26 public: |
| 27 // |num_log_files| must be greater than 1 and |max_log_size| must be greater | 27 // |num_log_files| must be greater than 1 and |max_log_size| must be greater |
| 28 // than 0. | 28 // than 0. |
| 29 FileRotatingLogSink(const std::string& log_dir_path, | 29 FileRotatingLogSink(const std::string& log_dir_path, |
| (...skipping 29 matching lines...) Expand all Loading... |
| 59 size_t max_total_log_size); | 59 size_t max_total_log_size); |
| 60 ~CallSessionFileRotatingLogSink() override; | 60 ~CallSessionFileRotatingLogSink() override; |
| 61 | 61 |
| 62 private: | 62 private: |
| 63 RTC_DISALLOW_COPY_AND_ASSIGN(CallSessionFileRotatingLogSink); | 63 RTC_DISALLOW_COPY_AND_ASSIGN(CallSessionFileRotatingLogSink); |
| 64 }; | 64 }; |
| 65 | 65 |
| 66 } // namespace rtc | 66 } // namespace rtc |
| 67 | 67 |
| 68 #endif // WEBRTC_RTC_BASE_LOGSINKS_H_ | 68 #endif // WEBRTC_RTC_BASE_LOGSINKS_H_ |
| OLD | NEW |