Mercurial > hg > nginx-site
comparison xml/en/docs/njs/reference.xml @ 2881:e59e8645055d
Relocated note from s.off to s.log in njs.
author | Yaroslav Zhuravlev <yar@nginx.com> |
---|---|
date | Thu, 18 Aug 2022 15:28:45 +0100 |
parents | 0280b6c71d38 |
children | ccd42f2b99fb |
comparison
equal
deleted
inserted
replaced
2880:ba7fc94e7796 | 2881:e59e8645055d |
---|---|
7 <!DOCTYPE article SYSTEM "../../../../dtd/article.dtd"> | 7 <!DOCTYPE article SYSTEM "../../../../dtd/article.dtd"> |
8 | 8 |
9 <article name="Reference" | 9 <article name="Reference" |
10 link="/en/docs/njs/reference.html" | 10 link="/en/docs/njs/reference.html" |
11 lang="en" | 11 lang="en" |
12 rev="85"> | 12 rev="86"> |
13 | 13 |
14 <section id="summary"> | 14 <section id="summary"> |
15 | 15 |
16 <para> | 16 <para> |
17 <link doc="index.xml">njs</link> provides objects, methods and properties | 17 <link doc="index.xml">njs</link> provides objects, methods and properties |
678 | 678 |
679 <tag-name id="s_log"><literal>s.log(<value>string</value>)</literal></tag-name> | 679 <tag-name id="s_log"><literal>s.log(<value>string</value>)</literal></tag-name> |
680 <tag-desc> | 680 <tag-desc> |
681 writes a sent <value>string</value> to the error log | 681 writes a sent <value>string</value> to the error log |
682 on the <literal>info</literal> level of logging | 682 on the <literal>info</literal> level of logging |
683 </tag-desc> | |
684 | |
685 <tag-name id="s_off"><literal>s.off(<value>eventName</value>)</literal></tag-name> | |
686 <tag-desc> | |
687 unregisters the callback set by the <link id="s_on">s.on()</link> method | |
688 (<link doc="changes.xml" id="njs0.2.4">0.2.4</link>) | |
689 <para> | 683 <para> |
690 <note> | 684 <note> |
691 As nginx has a | 685 As nginx has a |
692 <link doc="../dev/development_guide.xml" id="logging">hardcoded</link> | 686 <link doc="../dev/development_guide.xml" id="logging">hardcoded</link> |
693 maximum line length limit, | 687 maximum line length limit, |
694 only first 2048 bytes of the string can be logged. | 688 only first 2048 bytes of the string can be logged. |
695 </note> | 689 </note> |
696 </para> | 690 </para> |
691 </tag-desc> | |
692 | |
693 <tag-name id="s_off"><literal>s.off(<value>eventName</value>)</literal></tag-name> | |
694 <tag-desc> | |
695 unregisters the callback set by the <link id="s_on">s.on()</link> method | |
696 (<link doc="changes.xml" id="njs0.2.4">0.2.4</link>) | |
697 </tag-desc> | 697 </tag-desc> |
698 | 698 |
699 <tag-name id="s_on"><literal>s.on(<value>event</value>, | 699 <tag-name id="s_on"><literal>s.on(<value>event</value>, |
700 <value>callback</value>)</literal></tag-name> | 700 <value>callback</value>)</literal></tag-name> |
701 <tag-desc> | 701 <tag-desc> |