logview: move formats dict definition to __init__()