couchdb icon indicating copy to clipboard operation
couchdb copied to clipboard

[Bug]: Log cannot be written into log file

Open zhangjingcat opened this issue 9 months ago • 2 comments

Version

3.4.3

Describe the problem you're encountering

couchdb version: 3.4.3

I added the below config into /opt/couchdb/etc/local.d/xxx.ini file and reboot couchdb with

systemctl restart couchdb

 [log]
file = /var/log/couchdb/couchdb.log
level = info

But still cannot see any logs come into "/var/log/couchdb/couchdb.log".

Could you share some debug ways for this issue? The couchdb itself runs well as I cann see the status good for "systemctl status couchdb"

Thank you very much!

Expected Behaviour

logs come into "/var/log/couchdb/couchdb.log"

Steps to Reproduce

No response

Your Environment

No response

Additional Context

No response

zhangjingcat avatar Feb 13 '26 06:02 zhangjingcat

did you also set;

[log]
writer = file

to select the file output module?

https://docs.couchdb.org/en/stable/config/logging.html#log

rnewson avatar Feb 13 '26 07:02 rnewson

writer = file

writer = file

Thanks a lot, I did not set this and after done this my database is able to see logs in files!

zhangjingcat avatar Feb 13 '26 08:02 zhangjingcat