Move code fragment to i18n yaml

This commit is contained in:
uu59 2014-06-06 14:28:18 +09:00
parent 49ba55a868
commit 6c3ef9bcf5
3 changed files with 25 additions and 17 deletions

View File

@ -3,24 +3,8 @@
%p.clearfix
= link_to "<< " << t('tutorials.chapter1.page_title'), tutorials_chapter1_path, class: "pull-left"
%pre
2014-06-05 14:43:14 +0900 [info]: adding source type="http"
2014-06-05 14:43:14 +0900 [info]: adding match pattern="debug.*" type="stdout"
:markdown
#{t('.lesson_markdown')}
%pre
:escaped
<source>
type http
port 8888
</source>
<match debug.*>
type stdout
</match>
%p.clearfix
= link_to "<< " << t('tutorials.chapter1.page_title'), tutorials_chapter1_path, class: "pull-left"

View File

@ -127,7 +127,10 @@ en:
<<: *tutorials_common
page_title: "Chapter 2 | in_http and out_stdout"
lesson_markdown: |
You can see the log as above when fluentd started.
You can see the log when fluentd started.
2014-06-05 14:43:14 +0900 [info]: adding source type="http"
2014-06-05 14:43:14 +0900 [info]: adding match pattern="debug.*" type="stdout"
Line 1 enable http plugin that allows to receive HTTP requests.
@ -135,6 +138,15 @@ en:
These settings are defined as following fluent.conf:
<source>
type http
port 8888
</source>
<match debug.*>
type stdout
</match>
messages:
need_restart: need to restart fluentd-ui
please_sign_in: Sign in

View File

@ -129,12 +129,24 @@ ja:
lesson_markdown: |
fluentdの起動時にこのようなログがあるかと思います。
2014-06-05 14:43:14 +0900 [info]: adding source type="http"
2014-06-05 14:43:14 +0900 [info]: adding match pattern="debug.*" type="stdout"
この1行目でhttpが有効化されています。これでHTTPリクエストを受け付けるようになります。
2行目でstdoutが有効化されています。受け取ったデータのうち、タグが`debug.*`にマッチするものはstdoutへと渡されます。
この2つはfluent.confでそれぞれ次のように設定されています。
<source>
type http
port 8888
</source>
<match debug.*>
type stdout
</match>
messages:
need_restart: fluentd-uiの再起動が必要です
please_sign_in: ログイン