The logging command enables log sending in a traffic profile.
The undo logging command disables log sending in a traffic profile.
The log sending function is disabled by default in traffic profiles. To enable log sending in a specific traffic profile, you also need to enable bandwidth management logging. For details, see traffic-policy discard packet log enable.