A flexible logging API developed for the CubeEngine