diff options
author | Badlop <badlop@process-one.net> | 2008-08-18 19:08:30 +0000 |
---|---|---|
committer | Badlop <badlop@process-one.net> | 2008-08-18 19:08:30 +0000 |
commit | e37723f4a2cc749424d41573a954af84a74a8ac4 (patch) | |
tree | 5f1baa5efe43b129c8733bd6206c442f03fa488a /doc | |
parent | * src/mod_register.erl: Change password using mod_register always (diff) |
* src/mod_muc/mod_muc_log.erl: MUC log files options: plaintext
format; filename with only room name (EJAB-596)
* doc/guide.tex: Document both options
* doc/guide.html: Likewise
SVN Revision: 1531
Diffstat (limited to 'doc')
-rw-r--r-- | doc/guide.html | 23 | ||||
-rw-r--r-- | doc/guide.tex | 23 |
2 files changed, 36 insertions, 10 deletions
diff --git a/doc/guide.html b/doc/guide.html index b944bdff0..f916476a0 100644 --- a/doc/guide.html +++ b/doc/guide.html @@ -2184,26 +2184,38 @@ file or if they need to use the embedded CSS file. Allowed values are include the embedded CSS code. With the latter, you can specify the URL of the custom CSS file (for example: ‘http://example.com/my.css’). The default value is <TT>false</TT>. +</DD><DT CLASS="dt-description"><B><TT>dirname</TT></B></DT><DD CLASS="dd-description"> +Allows to configure the name of the room directory. +Allowed values are <TT>room_jid</TT> and <TT>room_name</TT>. +With the first value, the room directory name will be the full room JID. +With the latter, the room directory name will be only the room name, +not including the MUC service name. +The default value is <TT>room_jid</TT>. </DD><DT CLASS="dt-description"><B><TT>dirtype</TT></B></DT><DD CLASS="dd-description"> The type of the created directories can be specified with this option. Allowed values are <TT>subdirs</TT> and <TT>plain</TT>. With the first value, subdirectories are created for each year and month. With the latter, the names of the log files contain the full date, and there are no subdirectories. The default value is <TT>subdirs</TT>. +</DD><DT CLASS="dt-description"><B><TT>file_format</TT></B></DT><DD CLASS="dd-description"> +Define the format of the log files: +<TT>html</TT> stores in HTML format, +<TT>plaintext</TT> stores in plain text. +The default value is <TT>html</TT>. </DD><DT CLASS="dt-description"><B><TT>outdir</TT></B></DT><DD CLASS="dd-description"> This option sets the full path to the directory in which the HTML files should be stored. Make sure the <TT>ejabberd</TT> daemon user has write access on that directory. The default value is <TT>"www/muc"</TT>. -</DD><DT CLASS="dt-description"><B><TT>timezone</TT></B></DT><DD CLASS="dd-description"> -The time zone for the logs is configurable with this option. Allowed values -are <TT>local</TT> and <TT>universal</TT>. With the first value, the local time, -as reported to Erlang by the operating system, will be used. With the latter, -GMT/UTC time will be used. The default value is <TT>local</TT>. </DD><DT CLASS="dt-description"><B><TT>spam_prevention</TT></B></DT><DD CLASS="dd-description"> To prevent spam, the <TT>spam_prevention</TT> option adds a special attribute to links that prevent their indexation by search engines. The default value is <TT>true</TT>, which mean that nofollow attributes will be added to user submitted links. +</DD><DT CLASS="dt-description"><B><TT>timezone</TT></B></DT><DD CLASS="dd-description"> +The time zone for the logs is configurable with this option. Allowed values +are <TT>local</TT> and <TT>universal</TT>. With the first value, the local time, +as reported to Erlang by the operating system, will be used. With the latter, +GMT/UTC time will be used. The default value is <TT>local</TT>. </DD><DT CLASS="dt-description"><B><TT>top_link</TT></B></DT><DD CLASS="dd-description"> With this option you can customize the link on the top right corner of each log file. The syntax of this option is <TT>{"URL", "Text"}</TT>. The default @@ -2225,6 +2237,7 @@ time zone will be GMT/UTC. Finally, the top link will be {access_log, muc}, {cssfile, "http://example.com/my.css"}, {dirtype, plain}, + {dirname, room_jid}, {outdir, "/var/www/muclogs"}, {timezone, universal}, {spam_prevention, true}, diff --git a/doc/guide.tex b/doc/guide.tex index d2bb0603a..28488c403 100644 --- a/doc/guide.tex +++ b/doc/guide.tex @@ -2828,26 +2828,38 @@ Options: include the embedded CSS code. With the latter, you can specify the URL of the custom CSS file (for example: `http://example.com/my.css'). The default value is \term{false}. +\titem{dirname}\ind{options!dirname} + Allows to configure the name of the room directory. + Allowed values are \term{room\_jid} and \term{room\_name}. + With the first value, the room directory name will be the full room JID. + With the latter, the room directory name will be only the room name, + not including the MUC service name. + The default value is \term{room\_jid}. \titem{dirtype}\ind{options!dirtype} The type of the created directories can be specified with this option. Allowed values are \term{subdirs} and \term{plain}. With the first value, subdirectories are created for each year and month. With the latter, the names of the log files contain the full date, and there are no subdirectories. The default value is \term{subdirs}. +\titem{file\_format}\ind{options!file\_format} + Define the format of the log files: + \term{html} stores in HTML format, + \term{plaintext} stores in plain text. + The default value is \term{html}. \titem{outdir}\ind{options!outdir} This option sets the full path to the directory in which the HTML files should be stored. Make sure the \ejabberd{} daemon user has write access on that directory. The default value is \term{"www/muc"}. -\titem{timezone}\ind{options!timezone} - The time zone for the logs is configurable with this option. Allowed values - are \term{local} and \term{universal}. With the first value, the local time, - as reported to Erlang by the operating system, will be used. With the latter, - GMT/UTC time will be used. The default value is \term{local}. \titem{spam\_prevention}\ind{options!spam\_prevention} To prevent spam, the \term{spam\_prevention} option adds a special attribute to links that prevent their indexation by search engines. The default value is \term{true}, which mean that nofollow attributes will be added to user submitted links. +\titem{timezone}\ind{options!timezone} + The time zone for the logs is configurable with this option. Allowed values + are \term{local} and \term{universal}. With the first value, the local time, + as reported to Erlang by the operating system, will be used. With the latter, + GMT/UTC time will be used. The default value is \term{local}. \titem{top\_link}\ind{options!top\_link} With this option you can customize the link on the top right corner of each log file. The syntax of this option is \term{\{"URL", "Text"\}}. The default @@ -2872,6 +2884,7 @@ Examples: {access_log, muc}, {cssfile, "http://example.com/my.css"}, {dirtype, plain}, + {dirname, room_jid}, {outdir, "/var/www/muclogs"}, {timezone, universal}, {spam_prevention, true}, |