According to the expandkeywords option, you can specify which keywords to expand on success. I figured that flattenkeywords would do the opposite, but that is not the case. I want to collapse all tests in the log regardless if they fail or not, so when the Log file is initially opened a user would have to manually expand each suite, test and keyword.
This would be very useful especially for large log files. Anybody who can support with this? Thank you.
Probably best to raise an enhancement issue in the issue register for robot framework if you want something added.