Menu

[r1]: / test.cpp  Maximize  Restore  History

Download this file

29 lines (20 with data), 380 Bytes

 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
#include<iostream>
#include<string>
#include<stdarg.h>
#include<string.h>
#include "Log.h"
int main(int argc, char *argv[])
{
int i=1;
Log mylog("testlog");
//mylog.LogRotateEnable();
mylog.LogOpen();
mylog.SetLogSize(25);
mylog.LogSplitEnable();
while(i < argc){
mylog.LogWrite("%s\n", argv[i]);
mylog.LogCritical("%s\n", argv[i]);
i++;
}
return 0;
}
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.