From af574c038024a226b00cd0608376742c77ceda51 Mon Sep 17 00:00:00 2001 From: liuyifei Date: Wed, 30 Apr 2025 03:49:31 +0000 Subject: [PATCH] add interface Signed-off-by: liuyifei --- frameworks/libhilog/base/hilog_base.c | 5 +++++ interfaces/native/innerkits/include/hilog_base/log_base.h | 3 +++ 2 files changed, 8 insertions(+) diff --git a/frameworks/libhilog/base/hilog_base.c b/frameworks/libhilog/base/hilog_base.c index eab0f02..0995c0e 100644 --- a/frameworks/libhilog/base/hilog_base.c +++ b/frameworks/libhilog/base/hilog_base.c @@ -122,6 +122,11 @@ static void CleanSocket(void) } } +void HiLogRecordSnapshot(int lines, int64_t time) +{ + return; +} + int HiLogBasePrintArgs( const LogType type, const LogLevel level, const unsigned int domain, const char *tag, const char *fmt, va_list ap) { diff --git a/interfaces/native/innerkits/include/hilog_base/log_base.h b/interfaces/native/innerkits/include/hilog_base/log_base.h index 836bca9..63cc6cf 100644 --- a/interfaces/native/innerkits/include/hilog_base/log_base.h +++ b/interfaces/native/innerkits/include/hilog_base/log_base.h @@ -18,6 +18,7 @@ #include #include +#include #ifdef __cplusplus extern "C" { @@ -107,6 +108,8 @@ int HiLogBasePrint(LogType type, LogLevel level, unsigned int domain, const char */ bool HiLogBaseIsLoggable(unsigned int domain, const char *tag, LogLevel level); +void HiLogRecordSnapshot(int lines, int64_t time); + #ifdef __cplusplus } #endif -- Gitee