2020-10 upd: we reached the first fundraising goal and rented a server in Hetzner for development! Thank you for donating !
Attention! Current pages describe CBSD version 13.0.x. If you are using an older version, please update first.
Attention! I apologize for the automatic translation of this text. You can improve it by sending me a more correct version of the text or fix html pages via GITHUB repository.
FreeBSD: syslog and debugging
Starting from CBSD 11.1.19 You can use the syslog subsystem to collect messages that occur during the process of CBSD scripts
The configuration file for the log subsystem: ~cbsd/etc/defaults/logger.conf. Create new file ~cbds/etc/logger.conf to override the default values.
Using the syslog configuration file, you can redirect all messages of CBSD in a separate file and in the future use different solutions for the collection and analysis of messages.
!cbsd *.* /var/log/cbsd.log
And create empty file:
After syslog restarting, messages from CBSD can be read in a file /var/log/cbsd.log
If you encounter an error in the script, you can get a trace of all sh commands executed by running a particular CBSD script through the CBSD_DEBUG environment variable, for example:
env CBSD_DEBUG=1 cbsd jls