1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

Refactor ISrsContext and ISrsLog

This commit is contained in:
winlin 2020-06-25 13:14:59 +08:00
parent 2948b90f43
commit 81d2e10f65
11 changed files with 47 additions and 115 deletions

View file

@ -35,7 +35,7 @@
// Use memory/disk cache and donot flush when write log.
// it's ok to use it without config, which will log to console, and default trace level.
// when you want to use different level, override this classs, set the protected _level.
class SrsFastLog : public ISrsLog, public ISrsReloadHandler
class SrsFileLog : public ISrsLog, public ISrsReloadHandler
{
private:
// Defined in SrsLogLevel.
@ -49,8 +49,8 @@ private:
// Whether use utc time.
bool utc;
public:
SrsFastLog();
virtual ~SrsFastLog();
SrsFileLog();
virtual ~SrsFileLog();
// Interface ISrsLog
public:
virtual srs_error_t initialize();