formating in ksocket files,klog initialization