Examples of it's use here: https://github.com/zikula/core/blob/1.3/src/lib/legacy/util/LogUtil.php#L287 but you dont need the DataUtil calls nor the constants.