diff --git a/frameworks/libhilog/base/hilog_base.c b/frameworks/libhilog/base/hilog_base.c index eab0f02032bdbb156ebda1e561131ef483fda733..0995c0e1fdaf4bfaa38a2ef97a41030653518d30 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 836bca985eb6bc7ec535cb76ab6f6717ef4bd1c9..63cc6cf17a3acabccf3a7ee10ce1b62328139834 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