add some annotate

This commit is contained in:
chenhaijian 2024-07-12 22:28:35 +08:00
parent 2477158095
commit dc4996eeea
4 changed files with 11 additions and 2 deletions

View File

@ -65,7 +65,6 @@ extern "C"
#define LOGE(...) #define LOGE(...)
#define LOGF(...) #define LOGF(...)
#endif #endif
typedef struct i_log ILog;
typedef struct i_log typedef struct i_log
{ {
void (*init)(ILog *, const enum LogInstance); void (*init)(ILog *, const enum LogInstance);

View File

@ -16,6 +16,11 @@
#define ILOGCPP_H #define ILOGCPP_H
#include "ILog.h" #include "ILog.h"
#include <memory> #include <memory>
/**
* @brief Abstract interface class
* If you want to add additional functions, you can derive a class from it to
* meet the product requirements.
*/
class ILogCpp class ILogCpp
{ {
public: public:

View File

@ -12,6 +12,11 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
/**
* @brief Create a log instance
*
*/
#ifndef ILOG_MAKE_PTR_H #ifndef ILOG_MAKE_PTR_H
#define ILOG_MAKE_PTR_H #define ILOG_MAKE_PTR_H
#include "ILogCpp.h" #include "ILogCpp.h"

View File

@ -22,4 +22,4 @@
ENABLED = false ENABLED = false
FILENAME = "/tmp/logs/myeasylog-configuration.cpp-error.log" FILENAME = "/tmp/logs/myeasylog-configuration.cpp-error.log"
* FATAL: * FATAL:
ENABLED = false ENABLED = false