Add truncate option to Logger