syslog (actually RSYSLOG: see man rsyslogd (8)
and LOGRORATE: see man logrotate (8)
)
is used by all MEDIATEX’s binaries and scripts.
3 environment variables manage the content to log:
These variables are overwritten when using the corresponding command line options (see Options).
log_message()
from all processes
Log the activity (and rotate the logs).
$ mediatex upload[+] [file file [as target]]* [catalog file] [rules file] to coll coll
to uploadClient (see uploadClient): upload collection’s APACHE access logs to the cache so as to backup them.
local2.info /var/log/mediatex.log
Notice: This configuration tel RSYSLOG to ignore debug
messages (even if MEDIATEX send debug messages, you will not get them). The higher the level is and the less messages you get:
err > warning > notice > info > debug
Also, RSYSLOG will drop messages when they are coming too quickly, and you may want to change this setting (see Reporting bugs).
Manage MEDIATEX’s logs rotation.
Filtre and upload the Apache (see Apache)’s latest logs to the related collections, after rotation, if enabled into /etc/mediatex/mdtx-COLL/servers.txt (see servers.txt).
Code: