initial commit
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
#ifndef LOG_UTIL_H
|
||||
#define LOG_UTIL_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include <string>
|
||||
#include "cos_defines.h"
|
||||
|
||||
namespace qcloud_cos {
|
||||
|
||||
typedef void (*LogCallback)(const std::string& logstr);
|
||||
|
||||
class LogUtil {
|
||||
public:
|
||||
static std::string GetLogPrefix(int level);
|
||||
static std::string FormatLog(int level, const char* fmt, ...);
|
||||
static void Syslog(int level, const char* fmt, ...);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user