added the local log funktionality