mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Log: Refine the log interface. v5.0.82
This commit is contained in:
parent
252851d1b0
commit
e9915c3bd7
10 changed files with 91 additions and 277 deletions
|
@ -32,7 +32,7 @@ class SrsFileLog : public ISrsLog, public ISrsReloadHandler
|
|||
{
|
||||
private:
|
||||
// Defined in SrsLogLevel.
|
||||
SrsLogLevel level;
|
||||
SrsLogLevel level_;
|
||||
private:
|
||||
char* log_data;
|
||||
// Log to file if specified srs_log_file
|
||||
|
@ -51,11 +51,7 @@ public:
|
|||
public:
|
||||
virtual srs_error_t initialize();
|
||||
virtual void reopen();
|
||||
virtual void verbose(const char* tag, SrsContextId context_id, const char* fmt, ...);
|
||||
virtual void info(const char* tag, SrsContextId context_id, const char* fmt, ...);
|
||||
virtual void trace(const char* tag, SrsContextId context_id, const char* fmt, ...);
|
||||
virtual void warn(const char* tag, SrsContextId context_id, const char* fmt, ...);
|
||||
virtual void error(const char* tag, SrsContextId context_id, const char* fmt, ...);
|
||||
virtual void log(SrsLogLevel level, const char* tag, const SrsContextId& context_id, const char* fmt, va_list args);
|
||||
private:
|
||||
virtual void write_log(int& fd, char* str_log, int size, int level);
|
||||
virtual void open_log_file();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue