comparison xml/en/docs/dev/development_guide.xml @ 2258:2c8c10f00518

Development guide: fixed quotes encoding in <programlisting>.
author Sergey Kandaurov <pluknet@nginx.com>
date Thu, 18 Oct 2018 19:18:08 +0300
parents 2bc348966475
children 58df9b14b8ec
comparison
equal deleted inserted replaced
2257:8cef5ef98336 2258:2c8c10f00518
1962 <literal>log->action</literal>), client request line, server name etc. 1962 <literal>log->action</literal>), client request line, server name etc.
1963 </para> 1963 </para>
1964 1964
1965 <programlisting> 1965 <programlisting>
1966 /* specify what is currently done */ 1966 /* specify what is currently done */
1967 log->action = "sending mp4 to client”; 1967 log->action = "sending mp4 to client";
1968 1968
1969 /* error and debug log */ 1969 /* error and debug log */
1970 ngx_log_error(NGX_LOG_INFO, c->log, 0, "client prematurely 1970 ngx_log_error(NGX_LOG_INFO, c->log, 0, "client prematurely
1971 closed connection”); 1971 closed connection");
1972 1972
1973 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, mp4->file.log, 0, 1973 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, mp4->file.log, 0,
1974 "mp4 start:%ui, length:%ui”, mp4->start, mp4->length); 1974 "mp4 start:%ui, length:%ui", mp4->start, mp4->length);
1975 </programlisting> 1975 </programlisting>
1976 1976
1977 <para> 1977 <para>
1978 The example above results in log entries like these: 1978 The example above results in log entries like these:
1979 </para> 1979 </para>
1980 1980
1981 1981
1982 <programlisting> 1982 <programlisting>
1983 2016/09/16 22:08:52 [info] 17445#0: *1 client prematurely closed connection while 1983 2016/09/16 22:08:52 [info] 17445#0: *1 client prematurely closed connection while
1984 sending mp4 to client, client: 127.0.0.1, server: , request: "GET /file.mp4 HTTP/1.1” 1984 sending mp4 to client, client: 127.0.0.1, server: , request: "GET /file.mp4 HTTP/1.1"
1985 2016/09/16 23:28:33 [debug] 22140#0: *1 mp4 start:0, length:10000 1985 2016/09/16 23:28:33 [debug] 22140#0: *1 mp4 start:0, length:10000
1986 </programlisting> 1986 </programlisting>
1987 1987
1988 </section> 1988 </section>
1989 1989