perl library to format strings for logging