From fae7998112adcfc1121390224ea60ef73ce41d68 Mon Sep 17 00:00:00 2001 From: liuyifei Date: Tue, 13 May 2025 03:29: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 c482e9c..e78bc30 100644 --- a/frameworks/libhilog/base/hilog_base.c +++ b/frameworks/libhilog/base/hilog_base.c @@ -118,3 +118,8 @@ bool HiLogBaseIsLoggable(unsigned int domain, const char *tag, LogLevel level) } return true; } + +void HiLogRecordSnapshot(int lines, int64_t time) +{ + return; +} 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