Simplify exportlog (Fixes #350)