move logged message to system functions module