added Logger class
added macro function for logger class