The easiest way to configure logging is to use the dsconfig command in interactive mode, which walks you through the configuration. This section provides the required commands in non-interactive mode. For more information about dsconfig, see Configuring the Server With dsconfig.
Log configuration includes the definition of three configuration objects:
Log publisher. A log publisher is defined for each logger. The log publisher type corresponds to the type of log.
Log retention policy. The retention policy determines how long archived log files are stored.
Log rotation policy. The rotation policy determines how often log files are rotated.
In addition, debug logs require the configuration of a debug target.