added new defined rules for logging. scoped out logging method for user class with defined return values