Spacing fixes in README.rst
This commit is contained in:
parent
0be2c868cb
commit
ceb8d26aa0
68
README.rst
68
README.rst
|
@ -58,51 +58,49 @@ running a version lower than 2.0.
|
||||||
|
|
||||||
ckan.harvest.mq.type = redis
|
ckan.harvest.mq.type = redis
|
||||||
|
|
||||||
7. If you want your ckan harvest logs to be exposed to the ckan API you need to properly
|
7. If you want your ckan harvest logs to be exposed to the CKAN API you need to properly
|
||||||
configure the logger. The default configuration logs everything to the database with
|
configure the logger. The default configuration logs everything in the database with
|
||||||
log level ``DEBUG``. If you want to modify the database logger configure the following
|
log level ``DEBUG``. If you want to modify the default logging mechanism set the following
|
||||||
parameter::
|
parameter in your configuration file::
|
||||||
|
|
||||||
``ckan.harvest.log_scope = 0``
|
ckan.harvest.log_scope = 0
|
||||||
|
|
||||||
* Log scope settings:
|
* -1 - Do not log in the database
|
||||||
|
* 0 - Log everything - DEFAULT
|
||||||
|
* 1 - model, logic.action, logic.validators, harvesters
|
||||||
|
* 2 - model, logic.action, logic.validators
|
||||||
|
* 3 - model, logic.action
|
||||||
|
* 4 - logic.action
|
||||||
|
* 5 - model
|
||||||
|
* 6 - plugin
|
||||||
|
* 7 - harvesters
|
||||||
|
|
||||||
- ``-1`` Do not log to the database
|
Additionally you can configure the logger the following way::
|
||||||
- ``0`` Log everything - Default
|
|
||||||
- ``1`` model, logic.action, logic.validators, harvesters
|
|
||||||
- ``2`` model, logic.action, logic.validators
|
|
||||||
- ``3`` model, logic.action
|
|
||||||
- ``4`` logic.action
|
|
||||||
- ``5`` model
|
|
||||||
- ``6`` plugin
|
|
||||||
- ``7`` harvesters
|
|
||||||
|
|
||||||
Additionally you can configure the logger in the following way::
|
[loggers]
|
||||||
|
keys = ckan_harvester
|
||||||
|
|
||||||
[loggers]
|
[handlers]
|
||||||
keys = ckan_harvester
|
keys = dblog
|
||||||
|
|
||||||
[handlers]
|
[formatters]
|
||||||
keys = dblog
|
keys = dblog
|
||||||
|
|
||||||
[formatters]
|
[logger_ckan_harvester]
|
||||||
keys = dblog
|
qualname = ckanext.harvest
|
||||||
|
handlers = dblog
|
||||||
|
level = DEBUG
|
||||||
|
|
||||||
[logger_ckan_harvester]
|
[handler_dblog]
|
||||||
qualname = ckanext.harvest
|
class = ckanext.harvest.log.DBLogHandler
|
||||||
handlers = dblog
|
args = ()
|
||||||
level = DEBUG
|
level = DEBUG
|
||||||
|
formatter = dblog
|
||||||
|
|
||||||
[handler_dblog]
|
[formatter_dblog]
|
||||||
class = ckanext.harvest.log.DBLogHandler
|
format = %(message)s
|
||||||
args = ()
|
|
||||||
level = DEBUG
|
|
||||||
formatter = dblog
|
|
||||||
|
|
||||||
[formatter_dblog]
|
If you are having troubles configuring harvest logger please refer to ``test-core.ini``
|
||||||
format = %(message)s
|
|
||||||
|
|
||||||
If you are having troubles configuring ckan logger please refer to ``test-core.ini``
|
|
||||||
|
|
||||||
8. Setup time frame(in days) for the clean-up mechanism with the following config parameter::
|
8. Setup time frame(in days) for the clean-up mechanism with the following config parameter::
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue