Mercurial > prosody-modules
annotate mod_log_messages_sql/README.markdown @ 2493:a6486881fe42
mod_s2s_auth_dane/README: Mention the race condition in the absence of util.async
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 12 Feb 2017 17:05:44 +0100 |
parents | a216be9b1d6e |
children | b74c86d137c9 |
rev | line source |
---|---|
2406
a216be9b1d6e
mod_log_messages_sql/README: Point out incompatibility with 0.10
Kim Alvefur <zash@zash.se>
parents:
2323
diff
changeset
|
1 # Introduction |
a216be9b1d6e
mod_log_messages_sql/README: Point out incompatibility with 0.10
Kim Alvefur <zash@zash.se>
parents:
2323
diff
changeset
|
2 |
2323 | 3 This module logs messages to a SQL database. |
4 | |
5 SQL connection options are configured in a `message_log_sql` option, | |
6 which has the same syntax as the `sql` option for | |
7 [mod_storage_sql][doc:modules:mod_storage_sql]. | |
8 | |
2406
a216be9b1d6e
mod_log_messages_sql/README: Point out incompatibility with 0.10
Kim Alvefur <zash@zash.se>
parents:
2323
diff
changeset
|
9 # Usage |
a216be9b1d6e
mod_log_messages_sql/README: Point out incompatibility with 0.10
Kim Alvefur <zash@zash.se>
parents:
2323
diff
changeset
|
10 |
2323 | 11 You will need to create the following table in the configured database: |
12 | |
13 ``` sql | |
14 CREATE TABLE `prosodyarchive` ( | |
15 `host` TEXT, | |
16 `user` TEXT, | |
17 `store` TEXT, | |
18 `id` INTEGER PRIMARY KEY AUTOINCREMENT, | |
19 `when` INTEGER, | |
20 `with` TEXT, | |
21 `resource` TEXT, | |
22 `stanza` TEXT); | |
23 ``` | |
2406
a216be9b1d6e
mod_log_messages_sql/README: Point out incompatibility with 0.10
Kim Alvefur <zash@zash.se>
parents:
2323
diff
changeset
|
24 |
a216be9b1d6e
mod_log_messages_sql/README: Point out incompatibility with 0.10
Kim Alvefur <zash@zash.se>
parents:
2323
diff
changeset
|
25 # Compatibility |
a216be9b1d6e
mod_log_messages_sql/README: Point out incompatibility with 0.10
Kim Alvefur <zash@zash.se>
parents:
2323
diff
changeset
|
26 |
a216be9b1d6e
mod_log_messages_sql/README: Point out incompatibility with 0.10
Kim Alvefur <zash@zash.se>
parents:
2323
diff
changeset
|
27 Does *NOT* work with 0.10 due to a conflict with the new archiving |
a216be9b1d6e
mod_log_messages_sql/README: Point out incompatibility with 0.10
Kim Alvefur <zash@zash.se>
parents:
2323
diff
changeset
|
28 support in `mod_storage_sql`ยท |