diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2014-10-17 09:16:26 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2014-10-17 09:16:26 +0200 |
commit | 46428f37d62672a3d17663d1d704a6ebc3f21073 (patch) | |
tree | e858e8dfca33c60d56f4ed7c70b0d96f1209c2d0 /src/crawl/crawl.conf | |
parent | 85c1980e88ef1a47313423bd13f7378247722260 (diff) | |
download | crawler-46428f37d62672a3d17663d1d704a6ebc3f21073.tar.gz crawler-46428f37d62672a3d17663d1d704a6ebc3f21073.tar.bz2 |
replaced log( "LEVEL") Lua function with 'log.level' table of C functions for logging
Diffstat (limited to 'src/crawl/crawl.conf')
-rw-r--r-- | src/crawl/crawl.conf | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/crawl/crawl.conf b/src/crawl/crawl.conf index 29c3620..46599d6 100644 --- a/src/crawl/crawl.conf +++ b/src/crawl/crawl.conf @@ -81,24 +81,24 @@ filters = { function init( ) - log( "NOTICE", "Init.." ) + log.notice( "Init.." ) -- normalizer = urlnormalizers.create( "google_urlnormalizer" ); normalizer = GoogleURLNormalizer:new( ) -- normalizer2 = urlnormalizers.create( "simple_urlnormalizer" ); normalizer2 = SimpleURLNormalizer:new( ) base = tolua.cast( normalizer, "URLNormalizer" ) - log( "DEBUG", "type: " .. tolua.type( base ) ) + log.debug( "type: " .. tolua.type( base ) ) end function destroy( ) - log( "NOTICE", "Destroy.." ) + log.notice( "Destroy.." ) normalizer:delete( ) end function crawl( ) - log( "NOTICE", "Crawling.." ) + log.notice( "Crawling.." ) local baseUrl = base:parseUrl( "http://www.base.com" ) - log( "DEBUG", "base URL is: " .. baseUrl:str( ) ) + log.debug( "base URL is: " .. baseUrl:str( ) ) local url = base:normalize( baseUrl, "/relativedir/relativefile.html" ) - log( "DEBUG", "URL is: " .. url:str( ) ) + log.debug( "URL is: " .. url:str( ) ) end |