From dbd075fa4c499352420e5127966eafb667df0fd4 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 26 Aug 2014 15:36:28 +0100 Subject: [PATCH] Add notes about 'require'. --- doc/markdown/lua/index.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/markdown/lua/index.md b/doc/markdown/lua/index.md index d995306b2..2bb154556 100644 --- a/doc/markdown/lua/index.md +++ b/doc/markdown/lua/index.md @@ -235,6 +235,8 @@ Maps hold dynamically loaded data like lists or ip trees. It is possible to use Here is a sample of using maps from lua API: ~~~lua +local rspamd_logger = require "rspamd_logger" + -- Add two maps in configuration section local hash_map = rspamd_config:add_hash_map('file:///path/to/file', 'sample map') local radix_tree = rspamd_config:add_radix_map('http://somehost.com/test.dat', 'sample ip map') -- 2.39.5