
docs: Rewrite logging.md in English
@9267b057a745403ffbf5365089afa3d627eefacd
--- docs/logging.md
+++ docs/logging.md
... | ... | @@ -1,56 +1,76 @@ |
1 |
-Yobi는 사이트 운영자와 Yobi 개발자를 위해 운영중에 발생한 상황에 대한 로그를 남긴다. 로그는 logs 디렉토리에 있는 로그 파일 및 표준출력을 통해 남겨지게 된다. |
|
1 |
+Yobi supports logging of system messages for operators and Yobi programmers. |
|
2 |
+Yobi writes the logs to the log files in `logs` directory and standard output. |
|
2 | 3 |
|
3 |
-로그 파일 |
|
4 |
+Log Files |
|
4 | 5 |
--------- |
5 | 6 |
|
6 |
-설정을 변경하지 않았다면, 로그는 다음의 파일에 기록된다. |
|
7 |
+Unless you modified the logging configuration, logs are written to these files: |
|
7 | 8 |
|
8 |
- 애플리케이션 로그: logs/application.log |
|
9 |
- 액세스 로그: logs/access.log |
|
10 |
- 모든 로그: logs/root.log |
|
9 |
+* Application logs - `logs/application.log` |
|
10 |
+* Access logs - `logs/access.log` |
|
11 |
+* All logs - `logs/root.log` |
|
11 | 12 |
|
12 |
-`root.log`에 기록되는 로그는 표준 출력으로도 출력되나, 포맷은 조금 다를 수 있다. 두 포맷이 서로 어떻게 다른지 정확하게 확인해보려면 로그 설정 파일인 `conf/application-logger.xml`을 보라. |
|
13 |
+Every log which is written to `root.log` also written to standard output, but |
|
14 |
+the formats can be differ. See `conf/application-logger.xml`, the configuration |
|
15 |
+for logging, for the difference between two formats. |
|
13 | 16 |
|
14 |
-로그 설정 |
|
15 |
---------- |
|
17 |
+Loggin Configuration |
|
18 |
+-------------------- |
|
16 | 19 |
|
17 |
-어떤 로그를 어디에(어떤 파일 혹은 표준 출력 등)에 기록할 것인지에 대한 설정은 `conf/application-logger.xml`에서 한다. |
|
20 |
+You can configure logging in `conf/application-logger.xml`. See LOGBack |
|
21 |
+Document [1] for details about logging configuration. |
|
18 | 22 |
|
19 |
-로그의 설정에 대해서는 [LOGBack 문서](http://logback.qos.ch/documentation.html)를 참조한다. |
|
23 |
+Note: PlayFramework allows to configure logging also in |
|
24 |
+`conf/application.conf`. But Yobi uses `conf/application-logger.xml` for more |
|
25 |
+detailed configuration. If there is a difference between the two configurtaion |
|
26 |
+files, Yobi may works incorrectly. Use `conf/application-logger.xml` only for |
|
27 |
+logging configuration. |
|
20 | 28 |
|
21 |
-주의: PlayFramework는 `conf/application.conf`를 통해서도 로그에 대한 설정을 할 수 있도록 허용한다. 그러나 Yobi에서는 보다 정교한 설정을 위해 `conf/application-logger.xml`에 설정을 남기도록 하고 있다. 두 파일의 설정이 각각 다른 경우 의도하지 않은 동작을 하게 될 수 있으므로, 로그 관련 설정은 `conf/application-logger.xml`에서만 하도록 한다. |
|
22 |
- |
|
23 |
-로그 레벨 |
|
24 |
---------- |
|
25 |
- |
|
26 |
-다음의 표는 로그 레벨의 의미하는 바를 설명한 것이다. 로그 메시지를 남길 때, 로그 레벨을 어떤 것으로 할 것인가에 대해서는 이 표를 참고하라. |
|
29 |
+Log Levels |
|
30 |
+---------- |
|
27 | 31 |
|
28 | 32 |
<table> |
29 | 33 |
<thead> |
30 |
-<tr><td>로그 레벨</td><td>설명</td></tr> |
|
34 |
+<tr><td>Log level</td><td>Description</td></tr> |
|
31 | 35 |
</thead> |
32 | 36 |
<tbody> |
33 |
-<tr><td>ERROR</td><td>비정상적인 상황을 만났다. 오동작했거나, 혹은 그럴 가능성이 상당히 있다.</td></tr> |
|
34 |
-<tr><td>WARNING</td><td>비정상적인 상황을 만났다. 복원 혹은 무시하고 정상적으로 진행했으며, 오동작이 있었을 가능성은 낮다.</td></tr> |
|
35 |
-<tr><td>INFO</td><td>개발 및 운영에 도움을 주기 위한 정보</td></tr> |
|
36 |
-<tr><td>DEBUG</td><td>디버깅에 도움을 주기 위한 정보</td></tr> |
|
37 |
-<tr><td>TRACE</td><td>현재 사용하지 않는다.</td></tr> |
|
37 |
+<tr><td>ERROR</td><td>Yobi met an abnormal situation and might work incorrectly.</td></tr> |
|
38 |
+<tr><td>WARNING</td><td>Yobi met an abnormal situation and recovered or ignored it, but probably work correctly.</td></tr> |
|
39 |
+<tr><td>INFO</td><td>Diagnostic information for operators and Yobi programmers</td></tr> |
|
40 |
+<tr><td>DEBUG</td><td>Information for debugging</td></tr> |
|
41 |
+<tr><td>TRACE</td><td>Not used</td></tr> |
|
38 | 42 |
</tbody> |
39 | 43 |
</table> |
40 | 44 |
|
41 |
-로그 포맷 |
|
42 |
---------- |
|
45 |
+Log Format |
|
46 |
+---------- |
|
43 | 47 |
|
44 |
-### 애플리케이션 로그 |
|
48 |
+### Application log |
|
45 | 49 |
|
46 |
-애플리케이션 로그의 포맷은, 로그 설정 파일을 통해 설정할 수 있다. |
|
50 |
+You can configure the format for Application for by modifying the logging |
|
51 |
+configuration file. |
|
47 | 52 |
|
48 |
-### 액세스 로그 |
|
53 |
+### Access log |
|
49 | 54 |
|
50 |
-logs/access.log에 기록되는(기본 설정에서) 액세스 로그는, 다음의 예와 같이 [Apache HTTP Server의 Combined Log Format](http://httpd.apache.org/docs/2.2/logs.html)을 따른다. 다만 log entry의 끝에 처리시간(요청이 처리되는데 소요된 시간)이 추가된다는 점만이 Combined Log Format과 다르다. |
|
55 |
+The format for Access log follows Combined Log Format for Apache HTTP Server |
|
56 |
+[2] except the processing time, the time between when Yobi receives a request |
|
57 |
+and when Yobi send a response for the request, added at the end of every log |
|
58 |
+entry, as follows: |
|
51 | 59 |
|
52 |
- 127.0.0.1 - frank [10/Oct/2000:13:55:36 -0700] "GET /apache_pb.gif" 200 - "http://www.example.com/start.html" "Mozilla/4.08 [en] (Win98; I ;Nav)" 70ms |
|
60 |
+ 127.0.0.1 - frank [10/Oct/2000:13:55:36 -0700] "GET /apache_pb.gif" 200 |
|
61 |
+ - "http://www.example.com/start.html" "Mozilla/4.08 [en] (Win98; I ;Nav)" |
|
62 |
+ 70ms |
|
53 | 63 |
|
54 |
-또한 현재는 Yobi 기능상의 한계로 ident와 요청의 길이는 항상 "-" 으로 로그가 남게 된다. 응답이 정상적으로 처리되지 못해 에러가 발생한 경우에는 처리시간도 "-" 으로 기록된다. |
|
64 |
+#### Notes |
|
55 | 65 |
|
56 |
-처리시간은 요청의 수신이 완료된 후, 응답을 송신하게 직전까지 걸린 시간이다. 또한 chunked encoding된 본문으로 응답하는 경우, 본문을 생성하는데 걸린 시간(예: 첨부 파일을 다운로드 받는 경우 첨부 파일을 디스크에서 읽어 스트림에 쓰는 시간) 역시 처리시간에 포함되지 않는다. |
|
66 |
+* Ident field is always filled with "-". |
|
67 |
+* Processing time is filled with "-" if serving a request is failed. |
|
68 |
+* For chunked encoding, the time taken to generate response body, e.g. the time |
|
69 |
+ taken to read a file from a disk and write it to stream to provides it as |
|
70 |
+ a attachment a user requests, is not included in the processing time. |
|
71 |
+ |
|
72 |
+References |
|
73 |
+---------- |
|
74 |
+ |
|
75 |
+[1]: http://logback.qos.ch/documentation.html |
|
76 |
+[2]: http://httpd.apache.org/docs/2.2/logs.html |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?