Tracing’s Directive object for filter logs isn’t Clone or Serializable. Make a wrapper for a collection of Directives so that we can work more easily with it.
Clone
Serializable
Logging settings.