blob: fba4ad2fffc6aedb5774d6d3eebdb68e557271e2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
#include <libaklog.h>
static void test_message_output()
{
ak_log_print_log_line("1731664790 <TEST> [INFO] test message info");
}
static void test_follow()
{
ak_log_follow();
}
static void test_grep()
{
ak_log_grep("-h");
}
static void test_rotate()
{
ak_log_rotate();
}
static void test_log_message()
{
ak_log_message(__func__, DEBUG, "test message info");
}
static void test_exit()
{
ak_log_exit(__func__, "test message exit");
}
static void test_warning()
{
ak_log_warning(__func__, "test message WARNING");
}
static void test_debug()
{
ak_log_debug(__func__, "test message debug");
}
static void test_error()
{
ak_log_error(__func__, "test message error");
}
static void test_info()
{
ak_log_info(__func__, "test message info");
}
static void test_test()
{
ak_log_test(__func__, "test message test");
}
static void test_one_word()
{
ak_log_info(__func__, "test");
}
int main (void)
{
test_follow();
test_message_output();
test_info();
test_exit();
test_error();
test_debug();
test_warning();
test_test();
test_log_message();
test_rotate();
test_grep();
test_one_word();
return 0;
}
|