You control proxy logging by selecting Logging as part of a rule's action and by configuring the log limiter variables.
When logging is specified in a proxy rule, all (non-debug) events relating to a session enabled by that rule are logged for the proxy.
Also, events based on the limiters for a given proxy are logged, regardless of rule action.
See the SunScreen Reference Manual manual for the specifications of log limiter variables.