Change log_group_mode from a classic enum to a C++03-style class enum.