Adding maxsize for logs