]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
Add notes about 'require'.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 26 Aug 2014 14:36:28 +0000 (15:36 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 26 Aug 2014 14:36:28 +0000 (15:36 +0100)
doc/markdown/lua/index.md

index d995306b2dfeaacf0f65a9acaa8b19db6dd46f8b..2bb1545566aed5ab2d6f187c248c706ad75c37af 100644 (file)
@@ -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')