logging did not work properly when using a datasource, also many properties were not copied to the datasource

property settings were not being copied to the datasource
these included logLevel, binaryTranfer, sslfactory, applicationName
patch provided by Chen Huajun