feature:根据文件大小分割日志

This commit is contained in:
2024-11-19 21:31:00 +08:00
parent 81cebc7a18
commit de03985fef
11 changed files with 137 additions and 29 deletions

View File

@@ -11,10 +11,13 @@ int main() {
logger->debug("This is a debug message");
logger->warning("This is a warning message%s", "123");
char *test1[] = {"123", "tt"};
char *test1[] = {"123", "tt"};
log_Interceptor *tint =
loggingSubStringInterceptor(test1, 2, LOG_DEBUG, loggingFileHandler("test_interceptor"));
log_Interceptor *tint = loggingSubStringInterceptor(
test1,
2,
LOG_DEBUG,
loggingFileHandler("test_interceptor", 1024 * 1024));
logger->addInterceptor(tint);