add logger with option parser feature