File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -41,22 +41,22 @@ include(../../QSLogLib/QSLogLib.pri)
4141
4242int main (int argc, char * argv[ ] )
4343{
44- QCoreApplication mainApp(argc, argv);
44+ QCoreApplication mainApp(argc, argv);
4545
46- using namespace SLogLib;
46+ using namespace SLogLib;
4747
48- addLoggingDevice( new ConsoleLogger(new NullFormatter) );
49- addLoggingDevice( new FileLogger("foo.log", new DetailedFormatter) );
48+ addLoggingDevice( new ConsoleLogger(new NullFormatter) );
49+ addLoggingDevice( new FileLogger("foo.log", new DetailedFormatter) );
5050
51- // 다음 줄은 콘솔과 파일로 송신된다.
51+ // 다음 줄은 콘솔과 파일로 송신된다.
5252 // 콘솔은 표준 출력을 의미하며, 파일은 'foo.log'를 의미한다.
53- int a = 10;
54- double b = 15.3;
55- const char* c = "Success";
56- SLOGLIB_LOG_MSG_INFO("a = " << a << " b = " << b);
57- SLOGLIB_LOG_MSG_INFO(c);
53+ int a = 10;
54+ double b = 15.3;
55+ const char* c = "Success";
56+ SLOGLIB_LOG_MSG_INFO("a = " << a << " b = " << b);
57+ SLOGLIB_LOG_MSG_INFO(c);
5858
59- return 0;
59+ return 0;
6060}
6161```
6262
Original file line number Diff line number Diff line change @@ -41,22 +41,22 @@ include(../../QSLogLib/QSLogLib.pri)
4141
4242int main (int argc, char * argv[ ] )
4343{
44- QCoreApplication mainApp(argc, argv);
44+ QCoreApplication mainApp(argc, argv);
4545
46- using namespace SLogLib;
46+ using namespace SLogLib;
4747
48- addLoggingDevice( new ConsoleLogger(new NullFormatter) );
49- addLoggingDevice( new FileLogger("foo.log", new DetailedFormatter) );
48+ addLoggingDevice( new ConsoleLogger(new NullFormatter) );
49+ addLoggingDevice( new FileLogger("foo.log", new DetailedFormatter) );
5050
51- // The following line writes the message to both console and file.
51+ // The following line writes the message to both console and file.
5252 // Console means standard output, and output file means 'foo.log'.
53- int a = 10;
54- double b = 15.3;
55- const char* c = "Success";
56- SLOGLIB_LOG_MSG_INFO("a = " << a << " b = " << b);
57- SLOGLIB_LOG_MSG_INFO(c);
53+ int a = 10;
54+ double b = 15.3;
55+ const char* c = "Success";
56+ SLOGLIB_LOG_MSG_INFO("a = " << a << " b = " << b);
57+ SLOGLIB_LOG_MSG_INFO(c);
5858
59- return 0;
59+ return 0;
6060}
6161```
6262
You can’t perform that action at this time.
0 commit comments