123456789101112131415161718192021222324252627282930313233343536 |
- #include <unistd.h>
- #include <stdio.h>
- #include <stdlib.h>
- #include <stddef.h>
- #include <stdarg.h>
- #include <ctype.h>
- #include <string.h>
- #include <signal.h>
- #include <sys/file.h>
- #include <sys/dir.h>
- #include <sys/stat.h>
- #include <time.h>
- #include <sys/time.h>
- #include "ab_code.h"
- #include "log.h"
- int main(int argc, char *argv[])
- {
- set_log_filename("./logs/test[PID][YYYY][MM][DD].txt");
- set_log_keephours(1);
- set_log_stdout(1);
- log_trace("log trace ok");
- log_set_level(LOG_DEBUG);
- log_trace("log trace ------- ERROR!");
- log_debug("log debug ok");
- log_info("log info ok");
- log_warn("log warn ok");
- log_error("log error ok");
-
- return 0;
- }
|