Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 59932ca

Browse files
committed
Update README.md
1 parent f366c80 commit 59932ca

File tree

1 file changed

+15
-25
lines changed

1 file changed

+15
-25
lines changed

‎README.md

Lines changed: 15 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -10,28 +10,18 @@
1010
* [x] 支持输出到文件、控制台、调试器
1111
* [x] 支持格式化打印
1212

13-
## 示例
14-
15-
```cpp
16-
#include "log4cplusplus.h"
17-
18-
int main(int argc, char *argv[])
19-
{
20-
log4cplus::Log4CPlusPlus* log = CreateLog4CPlusPlus();
21-
if (log)
22-
{
23-
log->AddFileAppender();
24-
log->EnableDebuggerAppender(true);
25-
log->EnableConsoleAppender(true);
26-
27-
LOG4CPLUSPLUS_DEBUG(log, L"log test");
28-
LOG4CPLUSPLUS_INFO(log, L"log test %s", L"info");
29-
LOG4CPLUSPLUS_WARN(log, L"log test %s %d", L"warn", 123);
30-
LOG4CPLUSPLUS_ERROR(log, L"log test %f", 3.14);
31-
LOG4CPLUSPLUS_ERROR(log, L"中文日志测试!!");
32-
33-
log->Release();
34-
}
35-
return 0;
36-
}
37-
```
13+
## Clone
14+
15+
```
16+
git clone --recursive https://github.com/huihut/log4cplusplus.git
17+
```
18+
19+
## Build
20+
21+
```
22+
./generate_sln.bat
23+
```
24+
25+
## Usage
26+
27+
[tests/logtest/main.cc](tests/logtest/main.cc)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /