As with compressed logging, the server cannot maintain a mix of encrypted and unencrypted content for the same log, so you can only enable encryption when the logger is created. This can be done using the encrypt-log configuration property. See the config/sample-dsconfig-batch-files/create-encrypted-loggers.dsconfig batch file for an example that demonstrates the process for creating encrypted access and error loggers. These examples also enable compression for the log files.