logging for rest