Skip to content

Commit 9afb9d0

Browse files
committed
update readme
1 parent bd5ba36 commit 9afb9d0

2 files changed

Lines changed: 10 additions & 18 deletions

File tree

README.ko.md

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,38 +43,34 @@ int main(int argc, char *argv[])
4343
{
4444
QCoreApplication mainApp(argc, argv);
4545

46-
// Add these lines at the beginning of your program.
47-
// The devices and formatters are automatically deleted by SLogLib.
4846
using namespace SLogLib;
4947

5048
addLoggingDevice( new ConsoleLogger(new NullFormatter) );
5149
addLoggingDevice( new FileLogger("foo.log", new DetailedFormatter) );
5250

53-
// The following line writes the message to both console and file.
51+
// 다음 줄은 콘솔과 파일로 송신된다.
52+
// 콘솔은 표준 출력을 의미하며, 파일은 'foo.log'를 의미한다.
5453
int a = 10;
5554
double b = 15.3;
5655
const char* c = "Success";
5756
SLOGLIB_LOG_MSG_INFO("a = " << a << " b = " << b);
5857
SLOGLIB_LOG_MSG_INFO(c);
5958

6059
return 0;
61-
// return a.exec();
6260
}
6361
```
6462
6563
### UDP 송신 예제
6664
```cpp
6765
int main()
6866
{
69-
// Add these lines at the beginning of your program.
70-
// The devices and formatters are automatically deleted by SLogLib.
7167
using namespace SLogLib;
7268
73-
std::string strDestAddress = "192.168.137.1";
74-
unsigned short destPort = 5000;
69+
std::string strDestAddress = "192.168.137.1";
70+
unsigned short destPort = 5000;
7571
addLoggingDevice(new UdpLogger(strDestAddress, destPort, new NullFormatter));
7672
77-
// The following line writes the message to both console and file.
73+
// 다음 줄은 UDP 소켓으로 송신된다.
7874
int a = 10;
7975
double b = 15.3;
8076
const char* c = "Success";

README.md

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,38 +43,34 @@ int main(int argc, char *argv[])
4343
{
4444
QCoreApplication mainApp(argc, argv);
4545

46-
// Add these lines at the beginning of your program.
47-
// The devices and formatters are automatically deleted by SLogLib.
4846
using namespace SLogLib;
4947

50-
addLoggingDevice( new ConsoleLogger(new NullFormatter) );
48+
addLoggingDevice( new ConsoleLogger(new NullFormatter) );
5149
addLoggingDevice( new FileLogger("foo.log", new DetailedFormatter) );
5250

5351
// The following line writes the message to both console and file.
52+
// Console means standard output, and output file means 'foo.log'.
5453
int a = 10;
5554
double b = 15.3;
5655
const char* c = "Success";
5756
SLOGLIB_LOG_MSG_INFO("a = " << a << " b = " << b);
5857
SLOGLIB_LOG_MSG_INFO(c);
5958

6059
return 0;
61-
// return a.exec();
6260
}
6361
```
6462
6563
### Example for udp transmission
6664
```cpp
6765
int main()
6866
{
69-
// Add these lines at the beginning of your program.
70-
// The devices and formatters are automatically deleted by SLogLib.
7167
using namespace SLogLib;
7268
73-
std::string strDestAddress = "192.168.137.1";
74-
unsigned short destPort = 5000;
69+
std::string strDestAddress = "192.168.137.1";
70+
unsigned short destPort = 5000;
7571
addLoggingDevice(new UdpLogger(strDestAddress, destPort, new NullFormatter));
7672
77-
// The following line writes the message to both console and file.
73+
// The following line writes the message to UDP socket.
7874
int a = 10;
7975
double b = 15.3;
8076
const char* c = "Success";

0 commit comments

Comments
 (0)