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:
parent
2948b90f43
commit
81d2e10f65
11 changed files with 47 additions and 115 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue