improved logging object