diff --git a/tdutils/td/utils/TsFileLog.cpp b/tdutils/td/utils/TsFileLog.cpp index e8f75c964..bc5b04ff3 100644 --- a/tdutils/td/utils/TsFileLog.cpp +++ b/tdutils/td/utils/TsFileLog.cpp @@ -40,9 +40,6 @@ class TsFileLog : public LogInterface { return res; } - void append(CSlice cslice) override { - return append(cslice, -1); - } void append(CSlice cslice, int log_level) override { get_current_logger()->append(cslice, log_level); } diff --git a/tdutils/td/utils/logging.h b/tdutils/td/utils/logging.h index aa5bab42f..94a20c13e 100644 --- a/tdutils/td/utils/logging.h +++ b/tdutils/td/utils/logging.h @@ -182,14 +182,12 @@ class LogInterface { LogInterface(LogInterface &&) = delete; LogInterface &operator=(LogInterface &&) = delete; virtual ~LogInterface() = default; - virtual void append(CSlice slice) { - append(slice, -1); - } - virtual void append(CSlice slice, int /*log_level*/) { - append(slice); - } + + virtual void append(CSlice slice, int log_level) = 0; + virtual void rotate() { } + virtual vector get_file_paths() { return {}; }