To create the debug log publisher, use dsconfig.
The log-file
property (required) sets the debug log path. You
must also specify the rotation and retention policy for the debug log.
$ bin/dsconfig create-log-publisher \
--publisher-name "File-Based Debug Logger" \
--type file-based-debug \
--set enabled:true \
--set log-file:/logs/debug \
--set "rotation-policy:24 Hours Time Limit Rotation Policy" \
--set "rotation-policy:Size Limit Rotation Policy" \
--set "retention-policy:File Count Retention Policy"