Logging
Benoit Chesneau edited this page Jun 25, 2013
·
1 revision
the custom couch_log
module in Apache Couchdb has been replaced by lager version 2.0, a widely used logging application written by Basho.
You can setup the logging in the app.config file. For more informations about its config have a look in the lager README.
In rcouch you can also filter logs by task.
To get all replications logs add this line to your configuration file:
{lager,
[{crash_log, "log/crash.log"},
{error_logger_hwm, 100},
{handlers,
..
{lager_file_backend, [{file, "log/replication.log"}, {level, none},
{size, 10485760}, {date, "$D0"}, {count, 5}]}
]},
{traces, [
{ {lager_file_backend, "log/replication.log"}, [{task, replication}], debug},
{ {lager_file_backend, "log/replication.log"}, [{task, replication}], info},
{ {lager_file_backend, "log/replication.log"}, [{task, replication}], error}
]}
]},
For now only the replication task can be logged completly. views indexation and couchapp engine logs (javascript traceback) will be added soon.