mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
refine log, can be used when _srs_config is NULL.
This commit is contained in:
parent
7241fa8744
commit
9f2da4e095
4 changed files with 19 additions and 19 deletions
|
@ -57,6 +57,8 @@ public:
|
|||
|
||||
/**
|
||||
* we 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
|
||||
{
|
||||
|
@ -64,6 +66,7 @@ class SrsFastLog : public ISrsLog, public ISrsReloadHandler
|
|||
protected:
|
||||
// defined in SrsLogLevel.
|
||||
int _level;
|
||||
private:
|
||||
char* log_data;
|
||||
// log to file if specified srs_log_file
|
||||
int fd;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue