add logger extract code for slocal