-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
66a3c59
commit 5f418a9
Showing
8 changed files
with
10,871 additions
and
9,805 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// | ||
// Agora Media SDK | ||
// | ||
// Copyright (c) 2015 Agora IO. All rights reserved. | ||
// | ||
|
||
#pragma once | ||
|
||
#include <stdint.h> | ||
|
||
namespace agora { | ||
namespace commons { | ||
/* | ||
The SDK uses ILogWriter class Write interface to write logs as application | ||
The application inherits the methods Write() to implentation their own log writ | ||
Write has default implementation, it writes logs to files. | ||
Application can use setLogFile() to change file location, see description of set | ||
*/ | ||
class ILogWriter { | ||
public: | ||
/** user defined log Write function | ||
@param message message content | ||
@param length message length | ||
@return | ||
- 0: success | ||
- <0: failure | ||
*/ | ||
virtual int32_t writeLog(const char* message, uint16_t length) = 0; | ||
virtual ~ILogWriter() {} | ||
}; | ||
|
||
} // namespace commons | ||
} // namespace agora |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.