16class Logger :
public interface::Logger,
public rtc::LogSink {
37 Logger(Level level,
bool enable_webrtc_log =
false);
43 const std::string& message,
44 const std::string& filename =
"",
45 const std::string& function =
"",
50 void Trace(
const std::string& message,
51 const std::string& filename = __builtin_FILE(),
52 const std::string& function = __builtin_FUNCTION(),
53 int line = __builtin_LINE())
override;
56 void Debug(
const std::string& message,
57 const std::string& filename = __builtin_FILE(),
58 const std::string& function = __builtin_FUNCTION(),
59 int line = __builtin_LINE())
override;
62 void Info(
const std::string& message,
63 const std::string& filename = __builtin_FILE(),
64 const std::string& function = __builtin_FUNCTION(),
65 int line = __builtin_LINE())
override;
68 void Warn(
const std::string& message,
69 const std::string& filename = __builtin_FILE(),
70 const std::string& function = __builtin_FUNCTION(),
71 int line = __builtin_LINE())
override;
74 void Error(
const std::string& message,
75 const std::string& filename = __builtin_FILE(),
76 const std::string& function = __builtin_FUNCTION(),
77 int line = __builtin_LINE())
override;
81 void OnLogMessage(
const std::string& message)
override;
85 void OnLogMessage(
const std::string& message, rtc::LoggingSeverity severity)
override;
98 void SetLogLevel(Level level);
99 Level WebRTCSeverityToLogLevel(rtc::LoggingSeverity severity);
102 bool enable_webrtc_log_ =
false;
103 Level level_ = kInfo;
104 inline static std::mutex listener_mtx_;
105 inline static std::shared_ptr<Listener> listener_ =
nullptr;
SkyWay全体で使用される列挙型や定数を定義するヘッダーファイル