feature:根据文件大小分割日志
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user